Seems I was wrong. Uhm. It's late here... Anyway, I've really
running it now.

If we add this patch, we should also add the bits in libm:

#ifndef HAVE_SQRTL
long double
sqrtl(long double x)
  return  sqrt((double) x);

#ifndef HAVE_COSL
long double
cosl(long double x)
  return cos((double) x);

#ifndef HAVE_SINL
long double
sinl(long double x)
  return sin((double) x);

or we just compile stubs.c in and the gcc provided bits.
But I guess we would also not to link against libm then.

root@fuchur:/usr/src# diff -ruN gnu/lib/libstdc++/Makefile.orig
--- gnu/lib/libstdc++/Makefile.orig     Thu May 30 23:35:38 2002
+++ gnu/lib/libstdc++/Makefile  Thu May 30 23:32:19 2002
@@ -32,7 +32,7 @@

 # C parts of math
-SRCS+= nan.c signbit.c signbitf.c signbitl.c # stubs.c
+SRCS+= nan.c signbit.c signbitf.c signbitl.c stubs.c

 # Embedded copy of libsupc++
 SRCS+= \

But now it's working ...

root@fuchur:/usr/src/gnu/lib/libstdc++# nm /usr/lib/libstdc++.a | grep cosl
0000002a T cosl
root@fuchur:/usr/src/gnu/lib/libstdc++# nm /usr/lib/libstdc++.a | grep sqrtl
0000016c T sqrtl
root@fuchur:/usr/src/gnu/lib/libstdc++# nm /usr/lib/libstdc++.a | grep sinl
00000134 T sinl

ImproWare AG, UNIXSP & ISP, Zurlindenstrasse 29, 4133 Pratteln, CH
Phone: +41 061 826 93 00: +41 61 826 93 01
PGP: <finger -l [EMAIL PROTECTED]>
PGP Fingerprint: B434 53FC C87C FE7B 0A18 B84C 8686 EF22 D300 551E

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to