comparison configure.in @ 807:674df5617bba

Fixed static linking on MacOS X (thanks Max!)
author Sam Lantinga <slouken@libsdl.org>
date Wed, 11 Feb 2004 07:09:11 +0000
parents 3c609d54f100
children 5a417d2a8603
comparison
equal deleted inserted replaced
806:42f4a3abf70b 807:674df5617bba
2590 *) 2590 *)
2591 SHARED_SYSTEM_LIBS="" 2591 SHARED_SYSTEM_LIBS=""
2592 ;; 2592 ;;
2593 esac 2593 esac
2594 2594
2595 case "$ARCH" in
2596 macosx)
2597 # Evil hack to allow static linking on Mac OS X
2598 SDL_STATIC_LIBS="\${exec_prefix}/lib/libSDLmain.a \${exec_prefix}/lib/libSDL.a"
2599 ;;
2600 *)
2601 SDL_STATIC_LIBS="$SDL_LIBS"
2602 ;;
2603 esac
2604
2605
2595 STATIC_SYSTEM_LIBS="$SYSTEM_LIBS" 2606 STATIC_SYSTEM_LIBS="$SYSTEM_LIBS"
2596 2607
2597 dnl Output the video drivers we use 2608 dnl Output the video drivers we use
2598 if test x$enable_video = xtrue; then 2609 if test x$enable_video = xtrue; then
2599 if test "$VIDEO_SUBDIRS" = ""; then 2610 if test "$VIDEO_SUBDIRS" = ""; then
2612 AC_SUBST(SDL_EXTRALIBS) 2623 AC_SUBST(SDL_EXTRALIBS)
2613 2624
2614 dnl Expand the cflags and libraries needed by apps using SDL 2625 dnl Expand the cflags and libraries needed by apps using SDL
2615 AC_SUBST(SDL_CFLAGS) 2626 AC_SUBST(SDL_CFLAGS)
2616 AC_SUBST(SDL_LIBS) 2627 AC_SUBST(SDL_LIBS)
2628 AC_SUBST(SDL_STATIC_LIBS)
2617 AC_SUBST(SDL_RLD_FLAGS) 2629 AC_SUBST(SDL_RLD_FLAGS)
2618 2630
2619 dnl Expand the libraries needed for static and dynamic linking 2631 dnl Expand the libraries needed for static and dynamic linking
2620 AC_SUBST(STATIC_SYSTEM_LIBS) 2632 AC_SUBST(STATIC_SYSTEM_LIBS)
2621 AC_SUBST(SHARED_SYSTEM_LIBS) 2633 AC_SUBST(SHARED_SYSTEM_LIBS)