aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2015-11-11 10:20:36 +1100
committerNeil <nyamatongwe@gmail.com>2015-11-11 10:20:36 +1100
commit7bcfb35c5dda3bb36c3c16b1e28dc22c086ab039 (patch)
tree2c1cceef80b00313c34cc8913e97b908f982accf
parent96de7b8b552a6bf51d2babe9d0712a753eb47343 (diff)
downloadscintilla-mirror-7bcfb35c5dda3bb36c3c16b1e28dc22c086ab039.tar.gz
Don't use -fPIC on Windows due to warnings.
-rw-r--r--gtk/makefile7
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