From 97f38de07abcb41eff29f56d58d8e21c49b9ec0a Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 22 Jun 2013 08:53:41 +0200 Subject: 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. --- configure | 1 + 1 file changed, 1 insertion(+) 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' -- cgit v1.2.3