diff options
-rw-r--r-- | gtk/makefile | 7 |
1 files changed, 6 insertions, 1 deletions
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 |