Subject: Re: MKLINKLIB=no breaks -current builds (WAS: [Fwd: NetBSD Sandbox Output for Wed Oct 11 13:09:29 EDT 2006]])
To: Brian A. Seklecki <bseklecki@collaborativefusion.com>
From: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
List: current-users
Date: 10/19/2006 15:20:05
On Thu, Oct 19, 2006 at 00:34:45 -0400, Brian A. Seklecki wrote:

> MKLINKLIB=no (and inherently MKPIC=no) seems to break a recent build due
> to some internal dependency at:
> 
> #     build  libc/libc.so.12.147
[...]
> /home/nbsd/tool.i386/20061011-1209EDT/lib/gcc/i386--netbsdelf/4.1.2/../../../../i386--netbsdelf/bin/ld: cannot find -lgcc_pic
> collect2: ld returned 1 exit status
> *** [libc.so.12.147] Error code 1
> 1 error

Can you apply to gnu/lib/libgcc4/libgcc/Makefile a fix from revision 1.7 of
gnu/lib/libgcc3/libgcc/Makefile and see if that fixes the problem?

+# libgcc_pic.a is required for building shared libs
+.if ${MKPIC} != "no"
+MKPICINSTALL=	yes
+.endif
+
 .include <bsd.lib.mk>


SY, Uwe
-- 
uwe@ptc.spbu.ru                         |       Zu Grunde kommen
http://snark.ptc.spbu.ru/~uwe/          |       Ist zu Grunde gehen