Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 214121
Collapse All | Expand All

(-)hints/freebsd.sh.orig (-8 / +16 lines)
Lines 88-93 case "$osvers" in Link Here
88
	esac
88
	esac
89
	libswanted=`echo $libswanted | sed 's/ malloc / /'`
89
	libswanted=`echo $libswanted | sed 's/ malloc / /'`
90
	libswanted=`echo $libswanted | sed 's/ bind / /'`
90
	libswanted=`echo $libswanted | sed 's/ bind / /'`
91
	libswanted=`echo $libswanted | sed 's/ dl / /'`
92
	libswanted=`echo $libswanted | sed 's/ c / /'`
91
	# iconv gone in Perl 5.8.1, but if someone compiles 5.8.0 or earlier.
93
	# iconv gone in Perl 5.8.1, but if someone compiles 5.8.0 or earlier.
92
	libswanted=`echo $libswanted | sed 's/ iconv / /'`
94
	libswanted=`echo $libswanted | sed 's/ iconv / /'`
93
	d_setregid='define'
95
	d_setregid='define'
Lines 102-107 case "$osvers" in Link Here
102
	        ;;
104
	        ;;
103
	esac
105
	esac
104
	libswanted=`echo $libswanted | sed 's/ malloc / /'`
106
	libswanted=`echo $libswanted | sed 's/ malloc / /'`
107
	libswanted=`echo $libswanted | sed 's/ bind / /'`
108
	libswanted=`echo $libswanted | sed 's/ dl / /'`
109
	libswanted=`echo $libswanted | sed 's/ iconv / /'`
110
	libswanted=`echo $libswanted | sed 's/ c / /'`
105
	;;
111
	;;
106
esac
112
esac
107
113
Lines 116-132 case "$osvers" in Link Here
116
122
117
*)
123
*)
118
        objformat=`/usr/bin/objformat`
124
        objformat=`/usr/bin/objformat`
119
        if [ x$objformat = xelf ]; then
125
        if [ x$objformat = xaout ]; then
120
            libpth="/usr/lib /usr/local/lib"
121
            glibpth="/usr/lib /usr/local/lib"
122
            ldflags="-Wl,-E "
123
            lddlflags="-shared "
124
        else
125
            if [ -e /usr/lib/aout ]; then
126
            if [ -e /usr/lib/aout ]; then
126
                libpth="/usr/lib/aout /usr/local/lib /usr/lib"
127
                libpth="/usr/lib/aout /usr/local/lib /usr/lib"
127
                glibpth="/usr/lib/aout /usr/local/lib /usr/lib"
128
                glibpth="/usr/lib/aout /usr/local/lib /usr/lib"
128
            fi
129
            fi
129
            lddlflags='-Bshareable'
130
            lddlflags='-Bshareable'
131
        else
132
            libpth="/usr/lib /usr/local/lib"
133
            glibpth="/usr/lib /usr/local/lib"
134
            ldflags="-Wl,-E"
135
            lddlflags="-shared "
130
        fi
136
        fi
131
        cccdlflags='-DPIC -fPIC'
137
        cccdlflags='-DPIC -fPIC'
132
        ;;
138
        ;;
Lines 136-142 case "$osvers" in Link Here
136
0*|1*|2*|3*) ;;
142
0*|1*|2*|3*) ;;
137
143
138
*)
144
*)
139
	ccflags="${ccflags} -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H"
145
	ccflags="${ccflags} -pthread -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H"
140
	if /usr/bin/file -L /usr/lib/libc.so | /usr/bin/grep -vq "not stripped" ; then
146
	if /usr/bin/file -L /usr/lib/libc.so | /usr/bin/grep -vq "not stripped" ; then
141
	    usenm=false
147
	    usenm=false
142
	fi
148
	fi
Lines 183-189 esac Link Here
183
189
184
# This script UU/usethreads.cbu will get 'called-back' by Configure 
190
# This script UU/usethreads.cbu will get 'called-back' by Configure 
185
# after it has prompted the user for whether to use threads.
191
# after it has prompted the user for whether to use threads.
186
cat > UU/usethreads.cbu <<'EOCBU'
192
## not quite - modern FreeBSD perl port is supposed to take care of that
193
## we just add extra libraries and cflags nowadays
194
cat > /dev/null <<'EOCBU'
187
case "$usethreads" in
195
case "$usethreads" in
188
$define|true|[yY]*)
196
$define|true|[yY]*)
189
        lc_r=`/sbin/ldconfig -r|grep ':-lc_r'|awk '{print $NF}'|sed -n '$p'`
197
        lc_r=`/sbin/ldconfig -r|grep ':-lc_r'|awk '{print $NF}'|sed -n '$p'`

Return to bug 214121