]> granicus.if.org Git - postgis/commitdiff
Added -fPIC to CXXFLAGS. Reported to be needed on Solaris7 w/ gcc-3.3.2
authorSandro Santilli <strk@keybit.net>
Tue, 4 May 2004 16:55:39 +0000 (16:55 +0000)
committerSandro Santilli <strk@keybit.net>
Tue, 4 May 2004 16:55:39 +0000 (16:55 +0000)
by Havard Tveite <havard.tveite@nlh.no>.

git-svn-id: http://svn.osgeo.org/postgis/trunk@545 b70326c6-7e19-0410-871a-916f4a2858ee

Makefile

index 72ab398461ac10b766a414fd04e98097d2411411..cd4242d44169829ae099d72372adbc2345c57a8f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -94,7 +94,7 @@ POSTGIS_VERSION = $(SO_MAJOR_VERSION).$(SO_MINOR_VERSION) USE_GEOS=$(USE_GEOS) U
 
 #---------------------------------------------------------------
 
-override CFLAGS += -g -fexceptions  
+override CFLAGS += -g -fexceptions 
 override CFLAGS += -I$(srcdir) -DFRONTEND -DSYSCONFDIR='"$(sysconfdir)"' 
 override CFLAGS += -DUSE_VERSION=$(USE_VERSION)
 
@@ -112,6 +112,10 @@ override CXXFLAGS := $(CFLAGS)
 # for gcc >= 3.2.2 set GLIBCPP_FORCE_NEW at runtime instead
 #override CXXFLAGS += -D__USE_MALLOC
 
+# this seems to be needed by gcc3.3.2 / Solaris7 combination
+# as reported by  Havard Tveite <havard.tveite@nlh.no>
+override CXXFLAGS += -fPIC
+
 #---------------------------------------------------------------
 # Add index selectivity to C flags
 #