configure.in
changeset 2040 be848c07f0b9
parent 2021 4ddfbe55e105
child 2049 5f6550e5184f
child 3785 da2ea0694d11
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