diff options
author | Ollivier Robert <roberto@keltia.freenix.fr> | 1997-01-05 22:41:49 +0100 |
---|---|---|
committer | Chip Salzenberg <chip@atlantic.net> | 1997-01-08 11:52:00 +1200 |
commit | b126116e5ae3d57fa007f8a42fd506805b35163b (patch) | |
tree | 0074f6fb0d46867001d59e9d9118852d6232792b | |
parent | 5cbfc2849d37f748a8facbcbf1c889c575943488 (diff) | |
download | perl-b126116e5ae3d57fa007f8a42fd506805b35163b.tar.gz |
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: <Mutt.19970105224149.roberto@keltia.freenix.fr>
-rwxr-xr-x | Configure | 3 | ||||
-rwxr-xr-x | Makefile.SH | 4 |
2 files changed, 5 insertions, 2 deletions
@@ -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 57acde5658..3a418a47e6 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! |