@ -1,5 +1,5 @@
# Makefile for PL/Perl
# $PostgreSQL: pgsql/src/pl/plperl/GNUmakefile,v 1.14 2004/07/05 23:24:12 tgl Exp $
# $PostgreSQL: pgsql/src/pl/plperl/GNUmakefile,v 1.15 2004/07/16 19:18:24 momjian Exp $
subdir = src/pl/plperl
top_builddir = ../../..
@ -8,6 +8,9 @@ include $(top_builddir)/src/Makefile.global
i f e q ( $( perl_useshrplib ) , t r u e )
shared_libperl = yes
e n d i f
i f e q ( $( perl_useshrplib ) , y e s )
shared_libperl = yes
e n d i f
# If we don't have a shared library and the platform doesn't allow it
# to work without, we have to skip it.
@ -18,7 +21,13 @@ ifeq ($(GCC),yes)
override CFLAGS : = $( filter -out -Wall -Wmissing -declarations -Wmissing -prototypes , $ ( CFLAGS ) )
e n d i f
override CPPFLAGS : = -I $( srcdir ) -I $( perl_archlibexp ) /CORE $( CPPFLAGS )
i f e q ( $( PORTNAME ) , w i n 3 2 )
perl_archlibexp := $( subst \, /,$( perl_archlibexp) )
perl_privlibexp := $( subst \, /,$( perl_privlibexp) )
perl_embed_ldflags := -L $( perl_archlibexp) /CORE -lperl58
e n d i f
override CPPFLAGS : = -I $( srcdir ) $( CPPFLAGS ) -I $( perl_archlibexp ) /CORE
NAME = plperl