Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 63746a9

Browse files
committed
plperl's makefile tried to use perl's choice of compiler with
postgres's choice of compiler options. Tres uncool.
1 parent fac4f9a commit 63746a9

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/pl/plperl/Makefile.PL

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,13 @@ TYPEMAP= -typemap \$(EXTDIR)/typemap
5656
# use the same compiler as perl did
5757
CC= $Config{cc}
5858
59-
# get the compiler options that perl wants.
60-
CFLAGS+= @{[ccopts()]}
59+
# use the same compiler options as perl did, too
60+
CFLAGS= @{[ccopts()]}
6161
# including the ones for dynamic loading
6262
CFLAGS+= $Config{cccdlflags}
6363
64-
# add the includes for postgreSQL
65-
CFLAGS+= -I\$(LIBPQDIR) -I\$(SRCDIR)/include
66-
67-
# For fmgr.h
68-
CFLAGS+= -I\$(SRCDIR)/backend
69-
64+
# now add the includes for postgreSQL
65+
CFLAGS+= -I\$(LIBPQDIR) -I\$(SRCDIR)/include -I\$(SRCDIR)/backend
7066
7167
# add the postgreSQL libraries
7268
LDADD+= -L\$(LIBPQDIR) -lpq

0 commit comments

Comments
 (0)