From 7bcfb35c5dda3bb36c3c16b1e28dc22c086ab039 Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 11 Nov 2015 10:20:36 +1100 Subject: Don't use -fPIC on Windows due to warnings. --- gtk/makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'gtk/makefile') diff --git a/gtk/makefile b/gtk/makefile index 57a91226c..f9086fa34 100644 --- a/gtk/makefile +++ b/gtk/makefile @@ -31,6 +31,11 @@ RANLIB = ranlib endif endif +# Enable Position Independent Code except on Windows where it is the default so the flag produces a warning +ifndef windir +PICFLAGS = -fPIC +endif + ifdef windir DEL = del /q COMPLIB=..\bin\scintilla.a @@ -46,7 +51,7 @@ INCLUDEDIRS=-I ../include -I ../src -I ../lexlib ifdef CHECK_DEPRECATED DEPRECATED=-DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DDISABLE_GDK_FONT endif -CXXBASEFLAGS=-Wall -pedantic -fPIC -DGTK -DSCI_LEXER $(INCLUDEDIRS) $(DEPRECATED) +CXXBASEFLAGS=-Wall -pedantic $(PICFLAGS) -DGTK -DSCI_LEXER $(INCLUDEDIRS) $(DEPRECATED) ifdef NOTHREADS THREADFLAGS=-DG_THREADS_IMPL_NONE -- cgit v1.2.3