From b52d17fbd8cc968e18c9262a03b981f629e917d4 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 28 Feb 2012 21:58:36 -0500 Subject: [PATCH] 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 | 10 +--------- configure.in | 10 +--------- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/configure b/configure index 1a5d9cd42..ac6e02396 100755 --- a/configure +++ b/configure @@ -27900,15 +27900,7 @@ else 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" diff --git a/configure.in b/configure.in index 9a8edd810..263cbc35c 100644 --- a/configure.in +++ b/configure.in @@ -2559,15 +2559,7 @@ else 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)