mirror of
https://github.com/postgres/postgres.git
synced 2025-05-03 22:24:49 +03:00
plperl's makefile tried to use perl's choice of compiler with
postgres's choice of compiler options. Tres uncool.
This commit is contained in:
parent
fac4f9a698
commit
63746a90c1
@ -56,17 +56,13 @@ TYPEMAP= -typemap \$(EXTDIR)/typemap
|
|||||||
# use the same compiler as perl did
|
# use the same compiler as perl did
|
||||||
CC= $Config{cc}
|
CC= $Config{cc}
|
||||||
|
|
||||||
# get the compiler options that perl wants.
|
# use the same compiler options as perl did, too
|
||||||
CFLAGS+= @{[ccopts()]}
|
CFLAGS= @{[ccopts()]}
|
||||||
# including the ones for dynamic loading
|
# including the ones for dynamic loading
|
||||||
CFLAGS+= $Config{cccdlflags}
|
CFLAGS+= $Config{cccdlflags}
|
||||||
|
|
||||||
# add the includes for postgreSQL
|
# now add the includes for postgreSQL
|
||||||
CFLAGS+= -I\$(LIBPQDIR) -I\$(SRCDIR)/include
|
CFLAGS+= -I\$(LIBPQDIR) -I\$(SRCDIR)/include -I\$(SRCDIR)/backend
|
||||||
|
|
||||||
# For fmgr.h
|
|
||||||
CFLAGS+= -I\$(SRCDIR)/backend
|
|
||||||
|
|
||||||
|
|
||||||
# add the postgreSQL libraries
|
# add the postgreSQL libraries
|
||||||
LDADD+= -L\$(LIBPQDIR) -lpq
|
LDADD+= -L\$(LIBPQDIR) -lpq
|
||||||
|
Loading…
x
Reference in New Issue
Block a user