summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2013-06-22 08:53:41 +0200
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2013-06-22 08:53:41 +0200
commit97f38de07abcb41eff29f56d58d8e21c49b9ec0a (patch)
tree162e1042fa6debe1df430acbc0e8b64bd7ee1e5c
parente7c372cb2ff00edfb24c3a4fcbe5ccda76b92f9f (diff)
downloadmpv-97f38de07abcb41eff29f56d58d8e21c49b9ec0a.tar.bz2
mpv-97f38de07abcb41eff29f56d58d8e21c49b9ec0a.tar.xz
configure: cocoa: link to libarclite
libarclite provides method stubs for the Subscripting headers added in 0407869ae3. This allows to correclty build mpv on OSX 10.7 (I had tested that commit with OSX 10.8 running 10.7 SDK). It seems on 10.8 this option does't make any difference in the linked libraries (checked with otool -L) so I just add it unconditionally. Warning: This doesn't mean mpv moved to ARC. To do that one would have to add `-fobjc-arc` to the cflags.
-rwxr-xr-xconfigure1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure b/configure
index 665ee17f3c..a8ebcce983 100755
--- a/configure
+++ b/configure
@@ -1743,6 +1743,7 @@ EOF
fi
if test "$_cocoa" = yes ; then
libs_mplayer="$libs_mplayer -framework IOKit -framework Cocoa -framework OpenGL"
+ extra_ldflags="$extra_ldflags -fobjc-arc" # needed for OS X 10.7
def_cocoa='#define CONFIG_COCOA 1'
else
def_cocoa='#undef CONFIG_COCOA'