Skip to content
Snippets Groups Projects
Commit f4c069ca authored by Bruce Momjian's avatar Bruce Momjian
Browse files

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
parent 14755f87
No related branches found
No related tags found
No related merge requests found
# Makefile for PL/Perl # 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 subdir = src/pl/plperl
top_builddir = ../../.. top_builddir = ../../..
...@@ -8,6 +8,9 @@ include $(top_builddir)/src/Makefile.global ...@@ -8,6 +8,9 @@ include $(top_builddir)/src/Makefile.global
ifeq ($(perl_useshrplib),true) ifeq ($(perl_useshrplib),true)
shared_libperl = yes shared_libperl = yes
endif endif
ifeq ($(perl_useshrplib),yes)
shared_libperl = yes
endif
# If we don't have a shared library and the platform doesn't allow it # If we don't have a shared library and the platform doesn't allow it
# to work without, we have to skip it. # to work without, we have to skip it.
...@@ -18,7 +21,13 @@ ifeq ($(GCC),yes) ...@@ -18,7 +21,13 @@ ifeq ($(GCC),yes)
override CFLAGS := $(filter-out -Wall -Wmissing-declarations -Wmissing-prototypes, $(CFLAGS)) override CFLAGS := $(filter-out -Wall -Wmissing-declarations -Wmissing-prototypes, $(CFLAGS))
endif 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 NAME = plperl
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment