Fixed bug 1429 - Compiling static library with -arch fails when linking showimage
authorSam Lantinga <slouken@libsdl.org>
Tue, 28 Feb 2012 21:58:36 -0500
changeset 6303 6bb657898f55
parent 6302 b0ae93a5b8d6
child 6304 9821f5c9b7bd
Fixed bug 1429 - Compiling static library with -arch fails when linking showimage We no longer need this ancient hack and it's causing problems when building shared libraries against SDL.
configure
configure.in
--- a/configure	Sat Feb 04 00:13:21 2012 +1300
+++ b/configure	Tue Feb 28 21:58:36 2012 -0500
@@ -27900,15 +27900,7 @@
   SDL_RLD_FLAGS=""
 fi
 
-case "$ARCH" in
-  macosx)
-    # Evil hack to allow static linking on Mac OS X
-    SDL_STATIC_LIBS="\${libdir}/libSDL2.a $EXTRA_LDFLAGS"
-    ;;
-  *)
-    SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
-    ;;
-esac
+SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
 
 
 
--- a/configure.in	Sat Feb 04 00:13:21 2012 +1300
+++ b/configure.in	Tue Feb 28 21:58:36 2012 -0500
@@ -2559,15 +2559,7 @@
   SDL_RLD_FLAGS=""
 fi
 
-case "$ARCH" in
-  macosx)
-    # Evil hack to allow static linking on Mac OS X
-    SDL_STATIC_LIBS="\${libdir}/libSDL2.a $EXTRA_LDFLAGS"
-    ;;
-  *)
-    SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
-    ;;
-esac
+SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
 
 dnl Expand the cflags and libraries needed by apps using SDL
 AC_SUBST(SDL_CFLAGS)