Fixed bug 1754 - Link SDL_image HG to Cocoa
authorSam Lantinga <slouken@libsdl.org>
Fri, 06 Sep 2013 23:56:56 -0700
changeset 425361ab0371a02
parent 424 32218653702c
child 426 f0b623bb5570
Fixed bug 1754 - Link SDL_image HG to Cocoa

We don't need all of Cocoa, we just need the Objective C runtime.
configure
configure.in
     1.1 --- a/configure	Fri Sep 06 20:42:29 2013 -0700
     1.2 +++ b/configure	Fri Sep 06 23:56:56 2013 -0700
     1.3 @@ -12023,7 +12023,7 @@
     1.4  fi
     1.5  
     1.6          if test x$enable_imageio = xyes; then
     1.7 -            IMG_LIBS="-Wl,-framework,ApplicationServices $IMG_LIBS"
     1.8 +            IMG_LIBS="-Wl,-framework,ApplicationServices -lobjc $IMG_LIBS"
     1.9          else
    1.10              CFLAGS="$CFLAGS -DSDL_IMAGE_USE_COMMON_BACKEND"
    1.11          fi
     2.1 --- a/configure.in	Fri Sep 06 20:42:29 2013 -0700
     2.2 +++ b/configure.in	Fri Sep 06 23:56:56 2013 -0700
     2.3 @@ -80,7 +80,7 @@
     2.4          AC_ARG_ENABLE([imageio], [AC_HELP_STRING([--enable-imageio], [use native Mac OS X frameworks for loading images [default=yes]])],
     2.5                        [], [enable_imageio=yes])
     2.6          if test x$enable_imageio = xyes; then
     2.7 -            IMG_LIBS="-Wl,-framework,ApplicationServices $IMG_LIBS"
     2.8 +            IMG_LIBS="-Wl,-framework,ApplicationServices -lobjc $IMG_LIBS"
     2.9          else
    2.10              CFLAGS="$CFLAGS -DSDL_IMAGE_USE_COMMON_BACKEND"
    2.11          fi