]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Backpatch plperl GNUmakefile fixes to allow building release 8.2 on Mingw with a...
authorAndrew Dunstan <andrew@dunslane.net>
Fri, 17 Dec 2010 16:51:32 +0000 (11:51 -0500)
committerAndrew Dunstan <andrew@dunslane.net>
Fri, 17 Dec 2010 16:51:32 +0000 (11:51 -0500)
src/pl/plperl/GNUmakefile

index 6ea3f68c9f9b1d8d6497e9c7ec4ad24c41fe818f..2da437d470ebf15536ded8f58bb5d7c46b432acb 100644 (file)
@@ -19,8 +19,12 @@ ifneq (,$(findstring yes, $(shared_libperl)$(allow_nonpic_in_shlib)))
 ifeq ($(PORTNAME), win32)
 perl_archlibexp := $(subst \,/,$(perl_archlibexp))
 perl_privlibexp := $(subst \,/,$(perl_privlibexp))
-perl_embed_ldflags := -L$(perl_archlibexp)/CORE -lperl58
+perl_lib := $(basename $(notdir $(wildcard $(perl_archlibexp)/CORE/perl[5-9]*.lib)))
+perl_embed_ldflags = -L$(perl_archlibexp)/CORE -l$(perl_lib)
 override CPPFLAGS += -DPLPERL_HAVE_UID_GID
+# Perl on win32 contains /* within comment all over the header file,
+# so disable this warning.
+override CFLAGS += -Wno-comment
 endif
 
 override CPPFLAGS := -I. -I$(srcdir) $(CPPFLAGS) -I$(perl_archlibexp)/CORE