]> granicus.if.org Git - postgis/commitdiff
Move CFLAGS after the PGXS include directive, so that the autotools configuration...
authorMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Tue, 6 Oct 2009 08:51:49 +0000 (08:51 +0000)
committerMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Tue, 6 Oct 2009 08:51:49 +0000 (08:51 +0000)
git-svn-id: http://svn.osgeo.org/postgis/branches/1.4@4601 b70326c6-7e19-0410-871a-916f4a2858ee

loader/Makefile.in

index 4a149839ef7fa6629ad02a29a016e504045a0764..98f3aa0c15c41cb2a8f73e106e06541c82597138 100644 (file)
 # *
 # **********************************************************************
 
+# PGXS information
+#
+# Note that PGXS currently doesn't handle building FE executables, but we need
+# the INSTALL and DESTDIR variables so we can get the correct install paths. 
+# Hence we include the PGXS Makefile here, but ensure that we override the
+# 'all' and 'install' targets with the ones we really want to use below.
+PG_CONFIG = @PGCONFIG@
+PGXS := @PGXS@
+include $(PGXS)
+
+# Set CFLAGS afer PGXS, otherwise it will get overwritten with the PGXS
+# version which is not what we want. 
 CC=@CC@
 CFLAGS=@CFLAGS@ @PICFLAGS@ @WARNFLAGS@
 
@@ -33,16 +45,6 @@ LIBLWGEOM=../liblwgeom/liblwgeom.a
 GTK_CFLAGS = @GTK_CFLAGS@
 GTK_LIBS = @GTK_LIBS@
 
-# PGXS information
-#
-# Note that PGXS currently doesn't handle building FE executables, but we need
-# the INSTALL and DESTDIR variables so we can get the correct install paths. 
-# Hence we include the PGXS Makefile here, but ensure that we override the
-# 'all' and 'install' targets with the ones we really want to use below.
-PG_CONFIG = @PGCONFIG@
-PGXS := @PGXS@
-include $(PGXS)
-
 
 # The real parts of the Makefile
 all: $(SHP2PGSQL) $(PGSQL2SHP) @GTK_BUILD@