aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2015-05-01 15:36:44 -0400
committerAndrew Dunstan <andrew@dunslane.net>2015-05-01 15:36:44 -0400
commit77477e745be534c5925cf7cb8b9c6a7698c575a3 (patch)
treead8ee85651e75dd137e3079511dbc96ad199551c
parentb2f95c34f4e6ab1585af6f10d9d1351978ef15f7 (diff)
downloadpostgresql-77477e745be534c5925cf7cb8b9c6a7698c575a3.tar.gz
postgresql-77477e745be534c5925cf7cb8b9c6a7698c575a3.zip
Make hstore_plperl's build more like plperl's
This involves moving perl's CORE library to the end of the include list, and adding other compilation settings that plperl uses. This won't completely fix the breakage currently being seen by gcc builds on Windows, but it will let the build get further, and should be wholly benign, if not beneficial, on *nix.
-rw-r--r--contrib/hstore_plperl/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/hstore_plperl/Makefile b/contrib/hstore_plperl/Makefile
index ddf603627c8..39756c1a84a 100644
--- a/contrib/hstore_plperl/Makefile
+++ b/contrib/hstore_plperl/Makefile
@@ -3,7 +3,7 @@
MODULE_big = hstore_plperl
OBJS = hstore_plperl.o
-PG_CPPFLAGS = -I$(top_srcdir)/src/pl/plperl -I$(perl_archlibexp)/CORE -I$(top_srcdir)/contrib/hstore
+PG_CPPFLAGS = -I$(top_srcdir)/src/pl/plperl -I$(top_srcdir)/contrib/hstore
EXTENSION = hstore_plperl hstore_plperlu
DATA = hstore_plperl--1.0.sql hstore_plperlu--1.0.sql
@@ -21,3 +21,6 @@ top_builddir = ../..
include $(top_builddir)/src/Makefile.global
include $(top_srcdir)/contrib/contrib-global.mk
endif
+
+override CPPFLAGS := $(CPPFLAGS) -I$(perl_archlibexp)/CORE -DPLPERL_HAVE_UID_GID
+override CFLAGS += -Wno-comment