From 3cfb34564f7e420659b831f99b42eb81b141e938 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Fri, 13 Feb 2015 13:34:08 +0000 Subject: [PATCH] Avoid warning from mingw for shared library --- library/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/Makefile b/library/Makefile index 44a725c14..f2e553f08 100644 --- a/library/Makefile +++ b/library/Makefile @@ -19,8 +19,11 @@ endif # To compile as a shared library: ifdef SHARED +# all code is position-indep with mingw, avoid warning about useless flag +ifndef WINDOWS CFLAGS += -fPIC endif +endif SOVERSION=8