comparison configure.in @ 3293:0d60bdebed39

Fixed bug #674 Matej 2009-01-08 09:25:34 PST Hello, I maintain a cross-platform project that uses SDL. One of the users who runs OSX has told me that he has problems with linking to SDL due to missing -framework option. I think that the problem is because of this: 'sdl-config --libs' outputs '-L/opt/local/lib -lSDLmain -lSDL -Wl,-framework,Cocoa' All the options are passed to the linker except the last one. I think that the good output should be just: '-L/opt/local/lib -lSDLmain -lSDL -framework Cocoa' since those options (--libs) are passed to the linker, so the '-Wl' option is redundant and possibly harmful in this very case I use autotools with libtool to do the build... Regards, Matej
author Sam Lantinga <slouken@libsdl.org>
date Mon, 21 Sep 2009 10:23:19 +0000
parents 245a7d79577c
children 94f22808d19e
comparison
equal deleted inserted replaced
3292:245a7d79577c 3293:0d60bdebed39
1642 AC_DEFINE(SDL_VIDEO_OPENGL_CGL) 1642 AC_DEFINE(SDL_VIDEO_OPENGL_CGL)
1643 AC_DEFINE(SDL_VIDEO_RENDER_OGL) 1643 AC_DEFINE(SDL_VIDEO_RENDER_OGL)
1644 case "$host" in 1644 case "$host" in
1645 *-*-darwin*) 1645 *-*-darwin*)
1646 if test x$enable_video_cocoa = xyes; then 1646 if test x$enable_video_cocoa = xyes; then
1647 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGL" 1647 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -framework OpenGL"
1648 fi 1648 fi
1649 esac 1649 esac
1650 fi 1650 fi
1651 } 1651 }
1652 1652
2655 # Set up files for the haptic library 2655 # Set up files for the haptic library
2656 if test x$enable_haptic = xyes; then 2656 if test x$enable_haptic = xyes; then
2657 AC_DEFINE(SDL_HAPTIC_IOKIT) 2657 AC_DEFINE(SDL_HAPTIC_IOKIT)
2658 SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c" 2658 SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
2659 have_haptic=yes 2659 have_haptic=yes
2660 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback" 2660 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -framework ForceFeedback"
2661 fi 2661 fi
2662 # Set up files for the power library 2662 # Set up files for the power library
2663 if test x$enable_power = xyes; then 2663 if test x$enable_power = xyes; then
2664 AC_DEFINE(SDL_POWER_MACOSX) 2664 AC_DEFINE(SDL_POWER_MACOSX)
2665 SOURCES="$SOURCES $srcdir/src/power/macosx/*.c" 2665 SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
2672 have_timers=yes 2672 have_timers=yes
2673 fi 2673 fi
2674 # The Mac OS X platform requires special setup. 2674 # The Mac OS X platform requires special setup.
2675 EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings" 2675 EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
2676 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc" 2676 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
2677 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa" 2677 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -framework Cocoa"
2678 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon" 2678 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -framework Carbon"
2679 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit" 2679 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -framework IOKit"
2680 # If either the audio or CD driver is used, add the AudioUnit framework 2680 # If either the audio or CD driver is used, add the AudioUnit framework
2681 if test x$enable_audio = xyes; then 2681 if test x$enable_audio = xyes; then
2682 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit" 2682 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -framework CoreAudio -framework AudioToolbox -framework AudioUnit"
2683 fi 2683 fi
2684 ;; 2684 ;;
2685 *-riscos) 2685 *-riscos)
2686 ARCH=riscos 2686 ARCH=riscos
2687 CheckOSS 2687 CheckOSS