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>
solaris|netbsd)
xxx="-R $shrpdir"
;;
+ freebsd)
+ xxx="-Wl,-R,$shrpdir"
+ ;;
linux|irix*)
xxx="-Wl,-rpath,$shrpdir"
;;
-compatibility_version 1 -current_version $(PATCHLEVEL) \
-prebind -seg1addr 0x27000000 -install_name $(SHRPDIR)/$@'
;;
- sunos*)
+ sunos*|freebsd[23]*)
linklibperl="-lperl"
;;
esac
# 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!