From 655bf38f4f7847b908d7ed1b15f3efce1030b204 Mon Sep 17 00:00:00 2001 From: urchlay Date: Mon, 3 Oct 2005 13:40:48 +0000 Subject: [PATCH] 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 --- stella/configure | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/stella/configure b/stella/configure index 237e9d52f..33f71fae3 100755 --- a/stella/configure +++ b/stella/configure @@ -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