Work around linker weirdness in static Linux builds: have to swap the order

of "-lz -lpng" when building statically (but NOT otherwise!). Means you
need "sed" installed to build a static binary on Linux, but that's not
much of a restriction (who would have make and gcc installed but not sed?)


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@810 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
urchlay 2005-10-03 13:40:48 +00:00
parent a726556b41
commit 655bf38f4f
1 changed files with 8 additions and 1 deletions

9
stella/configure vendored
View File

@ -777,7 +777,14 @@ if test "$_build_joystick" = yes ; then
DEFINES="$DEFINES -DJOYSTICK_SUPPORT"
fi
# 20051003 bkw: fix static Linux build.
# No guarantee this will work for anyone other than me, and no
# guarantee it's needed by anyone but me (and Steve)...
if test "$_host_os" = unix ; then
if test "$_build_static" = yes ; then
LIBS="`echo \"$LIBS\" | sed 's/-lz -lpng/-lpng -lz/'`"
fi
fi
echo "Creating config.mak"
cat > config.mak << EOF