1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-07 22:58:11 +00:00
freebsd-ports/japanese/perl5/files/patch-ad
Jun Kuriyama fcc2dad64f Integrate patch-ad and patch-ah into patch-ad.
Submitted by:	Shigeyuki FUKUSHIMA <shige@kuis.kyoto-u.ac.jp>
1998-10-10 13:08:16 +00:00

57 lines
1.3 KiB
Plaintext

--- hints/freebsd.sh.orig Fri Jul 24 13:00:19 1998
+++ hints/freebsd.sh Sat Oct 10 20:39:02 1998
@@ -68,6 +68,7 @@
d_setreuid='define'
d_setegid='undef'
d_seteuid='undef'
+ d_dosuid='define'
test -r ./broken-db.msg && . ./broken-db.msg
;;
#
@@ -81,12 +82,18 @@
d_setreuid='define'
d_setegid='undef'
d_seteuid='undef'
+ d_dosuid='define'
;;
#
# Guesses at what will be needed after 2.2
*) usevfork='true'
usemymalloc='n'
libswanted=`echo $libswanted | sed 's/ malloc / /'`
+ d_setregid='define'
+ d_setreuid='define'
+ d_setegid='undef'
+ d_seteuid='undef'
+ d_dosuid='define'
;;
esac
@@ -95,12 +102,20 @@
case "$osvers" in
0.*|1.0*) ;;
-3.0*) if [ -e /usr/lib/aout ]; then
- libpth="/usr/lib/aout /usr/local/lib /usr/lib"
- glibpth="/usr/lib/aout /usr/local/lib /usr/lib"
- fi
- cccdlflags='-DPIC -fpic'
- lddlflags='-Bshareable'
+3.0*) objformat=`objformat`
+ if [ x$objformat = xelf ]; then
+ libpth="/usr/lib /usr/local/lib"
+ glibpth="/usr/lib /usr/local/lib"
+ ldflags="-Wl,-E "
+ lddlflags="-shared "
+ else
+ if [ -e /usr/lib/aout ]; then
+ libpth="/usr/lib/aout /usr/local/lib /usr/lib"
+ glibpth="/usr/lib/aout /usr/local/lib /usr/lib"
+ fi
+ lddlflags='-Bshareable'
+ fi
+ cccdlflags='-DPIC -fpic'
;;
*) cccdlflags='-DPIC -fpic'