diff options
author | Bruce Momjian <bruce@momjian.us> | 2004-07-16 19:18:24 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2004-07-16 19:18:24 +0000 |
commit | f4c069ca8fc80640bd1bff510697371ffaf45267 (patch) | |
tree | d23d4a3417eb05aef0557987bfa8fae8437fbf73 | |
parent | 14755f87eee1baa8467e34a79056db41dc9b2eb3 (diff) | |
download | postgresql-f4c069ca8fc80640bd1bff510697371ffaf45267.tar.gz postgresql-f4c069ca8fc80640bd1bff510697371ffaf45267.zip |
Here is a patch required to build plperl with win32. The issues were:
* perl_useshrplib gets set to "yes" and not to "true". I assume it's set
to "true" on unix, so I left both.
* Need to translate backslashes into slashes
* The linker config coming out of perl was for MSVC and not for mingw
Magnus Hagander
-rw-r--r-- | src/pl/plperl/GNUmakefile | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/pl/plperl/GNUmakefile b/src/pl/plperl/GNUmakefile index 10e62e65e48..873bf18acc2 100644 --- a/src/pl/plperl/GNUmakefile +++ b/src/pl/plperl/GNUmakefile @@ -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 ifeq ($(perl_useshrplib),true) shared_libperl = yes endif +ifeq ($(perl_useshrplib),yes) +shared_libperl = yes +endif # 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)) endif -override CPPFLAGS := -I$(srcdir) -I$(perl_archlibexp)/CORE $(CPPFLAGS) +ifeq ($(PORTNAME), win32) +perl_archlibexp := $(subst \,/,$(perl_archlibexp)) +perl_privlibexp := $(subst \,/,$(perl_privlibexp)) +perl_embed_ldflags := -L $(perl_archlibexp)/CORE -lperl58 +endif + +override CPPFLAGS := -I$(srcdir) $(CPPFLAGS) -I$(perl_archlibexp)/CORE NAME = plperl |