Strange behaviour of stock gcc FreeBSD 7/CURRENT

From: Boris Samorodov <bsam_at_ipt.ru>
Date: Tue, 08 Jan 2008 14:31:06 +0300
Hi All,


I've just noticed some new patches for OpenOffice.org which contains:
-----
+Strange behaviour of stock gcc of FreeBSD 7.
+
+# gcc -print-file-name=libgcc_s.so
+/usr/lib/libgcc_s.so
+# gcc -print-file-name=libgcc_s.so.1
+libgcc_s.so.1
+. This sould be
+# gcc -print-file-name=libgcc_s.so.1
+/lib/libgcc_s.so.1
+
+However gcc42 from ports behaves correctly;
+and
+# gcc42 -print-file-name=libgcc_s.so.1
+/usr/local/lib/gcc-4.2.3/gcc/i386-portbld-freebsd7.0/4.2.3/../../../libgcc_s.so.1
+# gcc42 -print-file-name=libgcc_s.so
+/usr/local/lib/gcc-4.2.3/gcc/i386-portbld-freebsd7.0/4.2.3/../../../libgcc_s.so
+.
-----

It's true for both i386 and amd64 CURRENT. For i386:
-----
tb% uname -a
FreeBSD tb.ipt.ru 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Sat Jan  5 15:55:54 MSK 2008     root_at_tb.ipt.ru:/usr/obj/usr/src/sys/GENERIC  i386
tb% gcc -print-file-name=libgcc_s.so
/usr/lib/libgcc_s.so
tb% gcc -print-file-name=libgcc_s.so.1
libgcc_s.so.1
tb% 
-----

Is it a known bug/feature/else? Thanks!


WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve
Received on Tue Jan 08 2008 - 10:32:40 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:25 UTC