1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/japanese/perl5/files/patch-ah

43 lines
990 B
Plaintext
Raw Normal View History

1999-05-08 06:30:06 +00:00
--- Makefile.SH.orig Fri May 7 22:06:24 1999
+++ Makefile.SH Fri May 7 22:26:31 1999
@@ -51,9 +51,18 @@
sunos*)
linklibperl="-lperl"
;;
1999-05-08 06:30:06 +00:00
- netbsd*|freebsd[234]*)
+ netbsd*)
linklibperl="-L. -lperl"
;;
+ freebsd*)
+ linklibperl="-L. -lperl"
+ if [ -x /usr/bin/objformat ]; then
1999-05-08 06:30:06 +00:00
+ objformat=`/usr/bin/objformat`
+ else
+ objformat=aout
+ fi
+ [ x$objformat = xelf ] && shrpldflags="${shrpldflags} -Wl,-soname,${libperl}"
+ ;;
aix*)
shrpldflags="-H512 -T512 -bhalt:4 -bM:SRE -bE:perl.exp"
case "$osvers" in
1999-05-08 06:30:06 +00:00
@@ -305,12 +314,17 @@
$spitshell >>Makefile <<'!NO!SUBS!'
$(LD) $(SHRPLDFLAGS) -o $@ perl$(OBJ_EXT) $(obj)
!NO!SUBS!
- case "$osname" in
- aix)
+ case "${osname}${osvers}" in
+ aix*)
$spitshell >>Makefile <<'!NO!SUBS!'
rm -f libperl$(OBJ_EXT)
mv $@ libperl$(OBJ_EXT)
$(AR) qv $(LIBPERL) libperl$(OBJ_EXT)
+!NO!SUBS!
+ ;;
+ freebsd*)
+ $spitshell >>Makefile <<'!NO!SUBS!'
+ $(LNS) $(LIBPERL) libperl.so
!NO!SUBS!
;;
esac