Subject: build problem in src/libexec/ld.elf_so with MKPICINSTALL=no
To: None <tech-toolchain@netbsd.org>
From: David Bonnafous <dbonnafo@lfbsi.net>
List: tech-toolchain
Date: 02/04/2003 08:59:35
hello,

I cross build NetBSD 1.6 (host i386, target sparc) with build.sh.
It works very well.

But when I use the MKPICINSTALL=no flag, nbmake stop in
src/libexec/ld.elf_so with this error :

---------
nbmake: don't know how to make /NetBSD/NetBSD-1.6-sparc/usr/lib/libc_pic.a. Stop
---------

I can find why... because in the ld.elf_so/Makefile there is special
stuff about libc_pic.a :

---------
DPADD+=	${CLIBOBJ}/libc_pic.a ${LIBC_PIC}

# One of these may not exist at link time, so avoid make errors.
${DPADD}:
	@true
---------
at compile time, 
DPADD=/NetBSD/obj-sparc/lib/libc/libc_pic.a \
      /NetBSD/NetBSD-1.6-sparc/usr/lib/libc_pic.a

/NetBSD/obj-sparc is OBJDIR and /NetBSD/NetBSD-1.6-sparc is
DESTDIR. The first one exist and because of MKPICINSTALL=no the second
one doesn't exist.

Can you help me ?

thank you.


David Bonnafous.