From eeda9b9f0f65314b8949d5977dc83850f6879039 Mon Sep 17 00:00:00 2001 From: Adrian Johnson Date: Sat, 6 Sep 2014 21:53:21 +0930 Subject: [PATCH 2/9] Don't use -fPIC on mingw it emits a warning for every file stating that -fPIC is ignored --- configure.ac | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 9d8d0b1..10a4b39 100644 --- a/configure.ac +++ b/configure.ac @@ -822,7 +822,17 @@ case "$enable_compile_warnings" in -Wmissing-format-attribute -fno-exceptions -fno-check-new \ -fno-common $CXXFLAGS" ;; esac -CXXFLAGS="-fPIC $CXXFLAGS"; + +case "$host_os" in + mingw*) + # mingw prints "warning: -fPIC ignored for target (all code is position independent)" + # for every file + ;; + *) + CXXFLAGS="-fPIC $CXXFLAGS"; + ;; +esac + case `$PKG_CONFIG --version` in 0.?|0.1[0-7]) -- 2.1.0