]> git.sesse.net Git - vlc/commitdiff
Request flags for static linking on win32 and MacOS
authorChristophe Mutricy <xtophe@videolan.org>
Sun, 25 Oct 2009 21:15:32 +0000 (21:15 +0000)
committerChristophe Mutricy <xtophe@videolan.org>
Sun, 25 Oct 2009 21:50:23 +0000 (21:50 +0000)
Only tested on a minimal win32 build. Please report configure/linking failure

configure.ac

index 4f1aac61702616aa78f4cd939de015ab16574e74..ed1995c16a0c4095f030c21ecc27f95d1d1cfa8d 100644 (file)
@@ -932,6 +932,12 @@ AC_ARG_VAR(PKG_CONFIG_PATH,
           [Paths where to find .pc not at the default location])
 PKG_PROG_PKG_CONFIG()
 
+dnl On some OS we need static linking 
+AS_IF([test "${SYS}" = "mingw32" -o "${SYS}" = "mingwce" -o "${SYS}" = "darwin" ],[
+       PKG_CONFIG = "${PKG_CONFIG} --static"
+    ])
+
+
 dnl
 dnl Check for zlib.h and -lz along with system -lminizip if available
 dnl