[PATCH 1/1] Remove the mandatory -fPIC from CXXFLAGS

Thiago Macieira thiago at macieira.org
Sat Apr 13 18:09:34 PDT 2013


This isn't necessary. There's code below adding -fPIE when necessary
only.
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 81e3648..8bbd26f 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@ VERSION=3.0.2
 CC=gcc
 CFLAGS=-Wall -Wno-pointer-sign -g $(CLCFLAGS) -DGSEAL_ENABLE
 CXX=g++
-CXXFLAGS=-Wall -g $(CLCFLAGS) -fPIC -DQT_NO_KEYWORDS
+CXXFLAGS=-Wall -g $(CLCFLAGS) -DQT_NO_KEYWORDS
 INSTALL=install
 PKGCONFIG=pkg-config
 XML2CONFIG=xml2-config
-- 
1.7.11.7



More information about the subsurface mailing list