From: Ollivier Robert Date: Sun, 5 Jan 1997 21:41:49 +0000 (+0100) Subject: Support libperl.so under FreeBSD X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b126116e5ae3d57fa007f8a42fd506805b35163b;p=p5sagit%2Fp5-mst-13.2.git Support libperl.so under FreeBSD Subject: Re: 5.003_18 + shared libperl + FreeBSD 3.0-CURRENT According to Andy Dougherty: > There's a section in Configure to add such things. Edit Configure and > look for a section like After many tests, here are the two patches that enable use of either shared or static libperl. Please everyone verify that I didn't broke anything (especially with the second patch in Makefile.SH)... Differences between NetBSD & FreeBSD surprise me because we're supposed to have almost the same ld/ld.so... p5p-msgid: --- diff --git a/Configure b/Configure index 464e54c..15a3e41 100755 --- a/Configure +++ b/Configure @@ -4679,6 +4679,9 @@ if "$useshrplib"; then solaris|netbsd) xxx="-R $shrpdir" ;; + freebsd) + xxx="-Wl,-R,$shrpdir" + ;; linux|irix*) xxx="-Wl,-rpath,$shrpdir" ;; diff --git a/Makefile.SH b/Makefile.SH index 57acde5..3a418a4 100755 --- a/Makefile.SH +++ b/Makefile.SH @@ -34,7 +34,7 @@ true) -compatibility_version 1 -current_version $(PATCHLEVEL) \ -prebind -seg1addr 0x27000000 -install_name $(SHRPDIR)/$@' ;; - sunos*) + sunos*|freebsd[23]*) linklibperl="-lperl" ;; esac @@ -290,7 +290,7 @@ quantperl: $& perlmain$(OBJ_EXT) $(LIBPERL) $(DYNALOADER) $(static_ext) ext.libs # has been invoked correctly. suidperl: $& sperl$(OBJ_EXT) perlmain$(OBJ_EXT) $(LIBPERL) $(DYNALOADER) $(static_ext) ext.libs - $(CC) $(LARGE) $(CLDFLAGS) $(CCDLFLAGS) -o suidperl perlmain$(OBJ_EXT) sperl$(OBJ_EXT) $(DYNALOADER) $(static_ext) $(LIBPERL) `cat ext.libs` $(libs) + $(CC) $(LARGE) $(CLDFLAGS) $(CCDLFLAGS) -o suidperl perlmain$(OBJ_EXT) sperl$(OBJ_EXT) $(DYNALOADER) $(static_ext) $(LLIBPERL) `cat ext.libs` $(libs) !NO!SUBS!