summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pl/plperl/Makefile.PL12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/pl/plperl/Makefile.PL b/src/pl/plperl/Makefile.PL
index 9285668917b..add0dfd32b0 100644
--- a/src/pl/plperl/Makefile.PL
+++ b/src/pl/plperl/Makefile.PL
@@ -56,17 +56,13 @@ TYPEMAP= -typemap \$(EXTDIR)/typemap
# use the same compiler as perl did
CC= $Config{cc}
-# get the compiler options that perl wants.
-CFLAGS+= @{[ccopts()]}
+# use the same compiler options as perl did, too
+CFLAGS= @{[ccopts()]}
# including the ones for dynamic loading
CFLAGS+= $Config{cccdlflags}
-# add the includes for postgreSQL
-CFLAGS+= -I\$(LIBPQDIR) -I\$(SRCDIR)/include
-
-# For fmgr.h
-CFLAGS+= -I\$(SRCDIR)/backend
-
+# now add the includes for postgreSQL
+CFLAGS+= -I\$(LIBPQDIR) -I\$(SRCDIR)/include -I\$(SRCDIR)/backend
# add the postgreSQL libraries
LDADD+= -L\$(LIBPQDIR) -lpq