develooper Front page | perl.perl5.porters | Postings from August 2001

[PATCH 5.6.x, 5.7.2] hints/openbsd.sh tweaks.

From:
Andy Dougherty
Date:
August 7, 2001 12:48
Subject:
[PATCH 5.6.x, 5.7.2] hints/openbsd.sh tweaks.
Message ID:
Pine.SOL.4.10.10108071544040.2431-100000@maxwell.phys.lafayette.edu
This applies to both perl-5.6.1 and perl-5.7.2.

The hints/openbsd.sh file incorrectly forced $usedl.  This patch allows
command-line overrides.

Also, Configure correctly picks up dlopen() and dlerror() from crt0.o, so
the special cases in the hints file are not needed.

diff -r -u perl-current/hints/openbsd.sh perl-andy/hints/openbsd.sh
--- perl-current/hints/openbsd.sh	Tue Feb 13 00:30:17 2001
+++ perl-andy/hints/openbsd.sh	Tue Aug  7 11:45:32 2001
@@ -25,16 +25,18 @@
 
 #
 # Not all platforms support dynamic loading...
+# For the case of "$openbsd_distribution", the hints file
+# needs to know whether we are using dynamic loading so that
+# it can set the libperl name appropriately.
+# Allow command line overrides.
 #
 ARCH=`arch|sed 's/^OpenBSD.//'`
 case "${ARCH}-${osvers}" in
 alpha-*|mips-*|vax-*|powerpc-2.[0-7]|m88k-*)
-	usedl=$undef
+	test -z "$usedl" && usedl=$undef
 	;;
 *)
-	usedl=$define
-	d_dlopen=$define
-	d_dlerror=$define
+	test -z "$usedl" && usedl=$define
 	# we use -fPIC here because -fpic is *NOT* enough for some of the
 	# extensions like Tk on some OpenBSD platforms (ie: sparc)
 	cccdlflags="-DPIC -fPIC $cccdlflags"

-- 
    Andy Dougherty		doughera@lafayette.edu
    Dept. of Physics
    Lafayette College, Easton PA 18042




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About