[vlc-devel] commit: Request flags for static linking on win32 and MacOS ( Christophe Mutricy )
git version control
git at videolan.org
Sun Oct 25 22:50:42 CET 2009
vlc | branch: master | Christophe Mutricy <xtophe at videolan.org> | Sun Oct 25 21:15:32 2009 +0000| [5d6f80f267e3bfe000fa0d29f5056d889d045e58] | committer: Christophe Mutricy
Request flags for static linking on win32 and MacOS
Only tested on a minimal win32 build. Please report configure/linking failure
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5d6f80f267e3bfe000fa0d29f5056d889d045e58
---
configure.ac | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac
index 4f1aac6..ed1995c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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
More information about the vlc-devel
mailing list