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.
This commit is contained in:
Stefano Pigozzi 2013-06-22 08:53:41 +02:00
parent e7c372cb2f
commit 97f38de07a
1 changed files with 1 additions and 0 deletions

1
configure vendored
View File

@ -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'