Whoops, this breaks building on Mac OS X 10.4
authorSam Lantinga <slouken@libsdl.org>
Tue, 22 Sep 2009 02:20:56 +0000
changeset 329894f22808d19e
parent 3297 d430982cd5cc
child 3299 975fd903466b
Whoops, this breaks building on Mac OS X 10.4
configure.in
test/configure.in
     1.1 --- a/configure.in	Mon Sep 21 22:25:14 2009 +0000
     1.2 +++ b/configure.in	Tue Sep 22 02:20:56 2009 +0000
     1.3 @@ -1644,7 +1644,7 @@
     1.4          case "$host" in
     1.5              *-*-darwin*)
     1.6                  if test x$enable_video_cocoa = xyes; then
     1.7 -                    EXTRA_LDFLAGS="$EXTRA_LDFLAGS -framework OpenGL"
     1.8 +                    EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGL"
     1.9                  fi
    1.10          esac
    1.11      fi
    1.12 @@ -2657,7 +2657,7 @@
    1.13              AC_DEFINE(SDL_HAPTIC_IOKIT)
    1.14              SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
    1.15              have_haptic=yes
    1.16 -            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -framework ForceFeedback"
    1.17 +            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
    1.18          fi
    1.19          # Set up files for the power library
    1.20          if test x$enable_power = xyes; then
    1.21 @@ -2674,12 +2674,12 @@
    1.22          # The Mac OS X platform requires special setup.
    1.23          EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
    1.24          EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
    1.25 -        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -framework Cocoa"
    1.26 -        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -framework Carbon"
    1.27 -        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -framework IOKit"
    1.28 +        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
    1.29 +        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
    1.30 +        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
    1.31          # If either the audio or CD driver is used, add the AudioUnit framework
    1.32          if test x$enable_audio = xyes; then
    1.33 -            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -framework CoreAudio -framework AudioToolbox -framework AudioUnit"
    1.34 +            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit"
    1.35          fi
    1.36          ;;
    1.37      *-riscos)
     2.1 --- a/test/configure.in	Mon Sep 21 22:25:14 2009 +0000
     2.2 +++ b/test/configure.in	Tue Sep 22 02:20:56 2009 +0000
     2.3 @@ -28,7 +28,7 @@
     2.4      *-*-darwin* )
     2.5          EXE=""
     2.6          MATHLIB=""
     2.7 -        SYS_GL_LIBS="-framework OpenGL"
     2.8 +        SYS_GL_LIBS="-Wl,-framework,OpenGL"
     2.9          ;;
    2.10      *-*-aix*)
    2.11          EXE=""