Mercurial > sdl-ios-xcode
comparison configure.in @ 2040:be848c07f0b9
Fixed bug #321
Hi,
if "configure" is given an explicit --libdir, the sdl-config still contains
the default "${exec_prefix}/lib" for runtime linker path.
That should be changed to $libdir, as this is where the library goes to...
Regards,
Juergen
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 24 Sep 2006 00:44:45 +0000 |
parents | 4ddfbe55e105 |
children | 5f6550e5184f da2ea0694d11 |
comparison
equal
deleted
inserted
replaced
2039:a4490e5864b9 | 2040:be848c07f0b9 |
---|---|
2450 | 2450 |
2451 # Set runtime shared library paths as needed | 2451 # Set runtime shared library paths as needed |
2452 | 2452 |
2453 if test "x$enable_rpath" = "xyes"; then | 2453 if test "x$enable_rpath" = "xyes"; then |
2454 if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = irix -o $ARCH = linux -o $ARCH = netbsd; then | 2454 if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = irix -o $ARCH = linux -o $ARCH = netbsd; then |
2455 SDL_RLD_FLAGS="-Wl,-rpath,\${exec_prefix}/lib" | 2455 SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}" |
2456 fi | 2456 fi |
2457 if test $ARCH = solaris; then | 2457 if test $ARCH = solaris; then |
2458 SDL_RLD_FLAGS="-R\${exec_prefix}/lib" | 2458 SDL_RLD_FLAGS="-R\${libdir}" |
2459 fi | 2459 fi |
2460 else | 2460 else |
2461 SDL_RLD_FLAGS="" | 2461 SDL_RLD_FLAGS="" |
2462 fi | 2462 fi |
2463 | 2463 |
2464 case "$ARCH" in | 2464 case "$ARCH" in |
2465 macosx) | 2465 macosx) |
2466 # Evil hack to allow static linking on Mac OS X | 2466 # Evil hack to allow static linking on Mac OS X |
2467 SDL_STATIC_LIBS="\${exec_prefix}/lib/libSDL.a $EXTRA_LDFLAGS" | 2467 SDL_STATIC_LIBS="\${libdir}/libSDL.a $EXTRA_LDFLAGS" |
2468 ;; | 2468 ;; |
2469 *) | 2469 *) |
2470 SDL_STATIC_LIBS="$SDL_LIBS" | 2470 SDL_STATIC_LIBS="$SDL_LIBS" |
2471 ;; | 2471 ;; |
2472 esac | 2472 esac |