From 3965d404ccd9b6cac95c4aee6cb668845031b685 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Wed, 5 Jun 2013 14:51:28 +0300 Subject: configure: Don't add -fPIC on windows targets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This avoids warnings about this option not having any effect on this platform. We still want to enable the pic configure item for these platforms (if detected via the compiler builtin define __PIC__) to get proper inline assembly workarounds. Signed-off-by: Martin Storsjö --- configure | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'configure') diff --git a/configure b/configure index c558aeb..25fab1d 100755 --- a/configure +++ b/configure @@ -3350,7 +3350,13 @@ enable_weak_pic() { disabled pic && return enable pic add_cppflags -DPIC - add_cflags -fPIC + case "$target_os" in + mingw*|cygwin*) + ;; + *) + add_cflags -fPIC + ;; + esac add_asflags -fPIC } -- cgit v1.1