summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2005-03-24 02:33:08 +0000
committerjlam <jlam@pkgsrc.org>2005-03-24 02:33:08 +0000
commit45f42ddba8b81521fcace8008aac5609a2ea0b79 (patch)
tree99338f629f541c3b11bc147859859c294e5530c2 /lang
parentdc5def016c8b0aa81c7e88ebe400c42499661c40 (diff)
downloadpkgsrc-45f42ddba8b81521fcace8008aac5609a2ea0b79.tar.gz
Perl's Configure needs to be restricted from finding libraries that
we don't want it to find. The usual buildlink techniques don't work here since the Configure script uses a file existence test instead of a linker test to see if the library exists. For each operating system that we support in pkgsrc, there should be corresponding LIBSWANTED.${OPSYS} and SYSLIBPATH.${OPSYS} definitions in the Perl package Makefiles to ensure we only get what we ask for. In this particular case, add the appropriate definitions for OpenBSD so that we don't pick up random libraries that may also be installed on the system.
Diffstat (limited to 'lang')
-rw-r--r--lang/perl5/Makefile8
-rw-r--r--lang/perl58/Makefile6
2 files changed, 9 insertions, 5 deletions
diff --git a/lang/perl5/Makefile b/lang/perl5/Makefile
index 2db2af0e24c..42de11beca2 100644
--- a/lang/perl5/Makefile
+++ b/lang/perl5/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.90 2005/03/23 16:52:01 jlam Exp $
+# $NetBSD: Makefile,v 1.91 2005/03/24 02:33:08 jlam Exp $
.include "../../lang/perl5/Makefile.common"
@@ -65,19 +65,21 @@ CONFIGURE_ARGS+= -Duse64bitint
# dependencies. If this isn't defined, then use the perl defaults for the
# particular operating system.
#
+LIBSWANTED.BSDOS= m crypt dl bind
LIBSWANTED.FreeBSD= m crypt
LIBSWANTED.IRIX= m crypt
LIBSWANTED.NetBSD= m crypt
+LIBSWANTED.OpenBSD= m crypt
LIBSWANTED.SunOS= m crypt dl socket nsl
-LIBSWANTED.BSDOS= m crypt dl bind
# Nail down the directories in which the system libraries may be found.
# If this isn't defined, then use the perl defaults for the particular
# operating system.
#
+SYSLIBPATH.BSDOS= /usr/lib
SYSLIBPATH.NetBSD= /usr/lib
+SYSLIBPATH.OpenBSD= /usr/lib
SYSLIBPATH.SunOS= /usr/lib
-SYSLIBPATH.BSDOS= /usr/lib
# Nail down the directories in which headers and libraries of
# locally-installed software may be found.
diff --git a/lang/perl58/Makefile b/lang/perl58/Makefile
index 707bb2e4c91..f21fccdceea 100644
--- a/lang/perl58/Makefile
+++ b/lang/perl58/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.76 2005/03/23 16:52:02 jlam Exp $
+# $NetBSD: Makefile,v 1.77 2005/03/24 02:33:08 jlam Exp $
# The following two variables should have empty values unless we're
# building a perl snapshot or release candidate.
@@ -97,9 +97,10 @@ USE_GNU_TOOLS+= make
#
LIBSWANTED.Darwin= m c
LIBSWANTED.FreeBSD= m crypt
-LIBSWANTED.Interix= m dl
LIBSWANTED.IRIX= m crypt
+LIBSWANTED.Interix= m dl
LIBSWANTED.NetBSD= m crypt
+LIBSWANTED.OpenBSD= m crypt
LIBSWANTED.SunOS= m crypt dl socket nsl
LIBSWANTED= ${LIBSWANTED.${OPSYS}}
@@ -111,6 +112,7 @@ SYSLIBPATH.Darwin= /usr/lib
SYSLIBPATH.FreeBSD= /usr/lib
SYSLIBPATH.Interix= /usr/lib
SYSLIBPATH.NetBSD= /usr/lib
+SYSLIBPATH.OpenBSD= /usr/lib
SYSLIBPATH.SunOS= /usr/lib
SYSLIBPATH= ${SYSLIBPATH.${OPSYS}}