From: Sandro Santilli Date: Tue, 4 May 2004 16:55:39 +0000 (+0000) Subject: Added -fPIC to CXXFLAGS. Reported to be needed on Solaris7 w/ gcc-3.3.2 X-Git-Tag: pgis_0_8_2~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ddd0cfaf0e9149dabf882e80660d34d32d61535b;p=postgis Added -fPIC to CXXFLAGS. Reported to be needed on Solaris7 w/ gcc-3.3.2 by Havard Tveite . git-svn-id: http://svn.osgeo.org/postgis/trunk@545 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/Makefile b/Makefile index 72ab39846..cd4242d44 100644 --- 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 +override CXXFLAGS += -fPIC + #--------------------------------------------------------------- # Add index selectivity to C flags #