Fixed bug #321
authorSam Lantinga
Sun, 24 Sep 2006 00:44:45 +0000
changeset 2040be848c07f0b9
parent 2039 a4490e5864b9
child 2041 4a32d186f35b
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
configure.in
     1.1 --- a/configure.in	Sun Sep 24 00:36:49 2006 +0000
     1.2 +++ b/configure.in	Sun Sep 24 00:44:45 2006 +0000
     1.3 @@ -2452,10 +2452,10 @@
     1.4  
     1.5  if test "x$enable_rpath" = "xyes"; then
     1.6    if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = irix -o $ARCH = linux -o $ARCH = netbsd; then
     1.7 -    SDL_RLD_FLAGS="-Wl,-rpath,\${exec_prefix}/lib"
     1.8 +    SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
     1.9    fi
    1.10    if test $ARCH = solaris; then
    1.11 -    SDL_RLD_FLAGS="-R\${exec_prefix}/lib"
    1.12 +    SDL_RLD_FLAGS="-R\${libdir}"
    1.13    fi
    1.14  else
    1.15    SDL_RLD_FLAGS=""
    1.16 @@ -2464,7 +2464,7 @@
    1.17  case "$ARCH" in
    1.18    macosx)
    1.19      # Evil hack to allow static linking on Mac OS X
    1.20 -    SDL_STATIC_LIBS="\${exec_prefix}/lib/libSDL.a $EXTRA_LDFLAGS"
    1.21 +    SDL_STATIC_LIBS="\${libdir}/libSDL.a $EXTRA_LDFLAGS"
    1.22      ;;
    1.23    *)
    1.24      SDL_STATIC_LIBS="$SDL_LIBS"