From 5d6f80f267e3bfe000fa0d29f5056d889d045e58 Mon Sep 17 00:00:00 2001 From: Christophe Mutricy Date: Sun, 25 Oct 2009 21:15:32 +0000 Subject: [PATCH 1/1] Request flags for static linking on win32 and MacOS Only tested on a minimal win32 build. Please report configure/linking failure --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index 4f1aac6170..ed1995c16a 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 -- 2.39.2