1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-02 11:09:29 +00:00

. Fix build problems that some people are experiencing by also taking

account of weak symbols in libc to determine which functions are
  available.

PR:		47379, 50135
Submitted by:	Kevin Day <toasty@dragondata.com> (maintainer)
This commit is contained in:
Greg Lewis 2003-09-09 16:29:59 +00:00
parent 79844335c3
commit a06ba05f30
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=88869

View File

@ -1,5 +1,5 @@
--- Configure.bak Fri Dec 15 08:00:55 2000
+++ Configure Mon Oct 21 21:11:16 2002
--- Configure.orig Fri Dec 15 14:00:55 2000
+++ Configure Mon Jan 27 04:04:55 2003
@@ -18,11 +18,6 @@
PATH=".:/bin:/usr/bin:/usr/local/bin:/usr/ucb:/usr/local:/usr/lbin:/etc:/usr/new:/usr/new/bin:/usr/nbin:$PATH"
export PATH || (echo "OOPS, this isn't sh. Desperation time. I will feed myself to sh."; sh $0; kill $$)
@ -20,6 +20,15 @@
test -f $1 || set /usr/lib/libc.so
test -f $1 || set /usr/lib/libc.so.[0-9]*
test -f $1 || set /lib/libsys_s.a
@@ -2108,7 +2104,7 @@
set `echo $libc $libnames | tr ' ' '\012' | sort | uniq`
$echo $n "Extracting names from $* for later perusal...$c"
nm $nm_opts $* 2>/dev/null >libc.tmp
-$sed -n -e 's/^.* [ATDS] *[_.]*//p' -e 's/^.* [ATDS] //p' <libc.tmp >libc.list
+$sed -n -e 's/^.* [ATDSW] *[_.]*//p' -e 's/^.* [ATDSW] //p' <libc.tmp >libc.list
if $contains '^printf$' libc.list >/dev/null 2>&1; then
echo done
elif $sed -n -e 's/^__*//' -e 's/^\([a-zA-Z_0-9$]*\).*xtern.*/\1/p' \
@@ -2496,7 +2492,10 @@
#
: see if crypt exists