[vlc-commits] configure: link vlc and libvlc to AppKit

Felix Paul Kühne git at videolan.org
Tue Jun 19 18:10:46 CEST 2012


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Tue Jun 19 18:10:05 2012 +0200| [219e17198d88c486b4bf3a63a5c27a551eb20628] | committer: Felix Paul Kühne

configure: link vlc and libvlc to AppKit

This looks stupid and weird. The rationale is that the PowerBox mechanism used when running VLC in a Sandbox on OS X Lion checks whether the executable is linked against AppKit. If not, neither NSOpenPanel nor NSSavePanel will appear.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=219e17198d88c486b4bf3a63a5c27a551eb20628
---

 configure.ac |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 15cdc6c..3b66640 100644
--- a/configure.ac
+++ b/configure.ac
@@ -156,7 +156,7 @@ case "${host_os}" in
     OBJCFLAGS="${OBJCFLAGS} -D_INTL_REDIRECT_MACROS -std=gnu99 ${ARCH_flag}"
     LDFLAGS="${LDFLAGS} -Wl,-headerpad_max_install_names ${ARCH_flag}"
     VLC_ADD_LIBS([mkv mp4 motion], [-Wl,-framework,IOKit,-framework,CoreFoundation])
-    VLC_ADD_LIBS([libvlc vlc],[-Wl,-undefined,dynamic_lookup])
+    VLC_ADD_LIBS([libvlc vlc],[-Wl,-undefined,dynamic_lookup,-framework,Appkit])
     VLC_ADD_LIBS([avcodec avformat access_avio swscale postproc i420_rgb_mmx x264 x26410b],[-Wl,-read_only_relocs,suppress])
     VLC_ADD_CFLAGS([motion],[-fconstant-cfstrings])
     VLC_ADD_LIBS([libvlccore],[-Wl,-framework,CoreFoundation])



More information about the vlc-commits mailing list