Adds some required CFLAGS and LDFLAGS for the iOS platform
authorGabriel Jacobo <gabomdq@gmail.com>
Mon, 04 Mar 2013 10:33:48 -0300
changeset 6960e4e9fbf6f333
parent 6959 729c84dbd1bc
child 6961 3ef29a1398ed
Adds some required CFLAGS and LDFLAGS for the iOS platform
configure
configure.in
     1.1 --- a/configure	Sun Mar 03 22:08:00 2013 -0800
     1.2 +++ b/configure	Mon Mar 04 10:33:48 2013 -0300
     1.3 @@ -22324,6 +22324,15 @@
     1.4          # The iOS platform requires special setup.
     1.5          SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
     1.6          SOURCES="$SOURCES $srcdir/src/video/uikit/*.c"
     1.7 +        EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
     1.8 +        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
     1.9 +        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
    1.10 +        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
    1.11 +        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
    1.12 +        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
    1.13 +        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
    1.14 +        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
    1.15 +        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
    1.16          ;;
    1.17      *-*-darwin* )
    1.18          # This could be either full "Mac OS X", or plain "Darwin" which is
     2.1 --- a/configure.in	Sun Mar 03 22:08:00 2013 -0800
     2.2 +++ b/configure.in	Mon Mar 04 10:33:48 2013 -0300
     2.3 @@ -2510,6 +2510,15 @@
     2.4          # The iOS platform requires special setup.
     2.5          SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
     2.6          SOURCES="$SOURCES $srcdir/src/video/uikit/*.c"
     2.7 +        EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
     2.8 +        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
     2.9 +        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
    2.10 +        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
    2.11 +        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
    2.12 +        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
    2.13 +        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
    2.14 +        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
    2.15 +        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
    2.16          ;;
    2.17      *-*-darwin* )
    2.18          # This could be either full "Mac OS X", or plain "Darwin" which is