Subject: make build into empty destdir possibly broken
To: None <>
From: Tim Rightnour <>
List: current-users
Date: 04/09/2000 11:57:29
I've been trying to get my crosscompiler running again, which suddenly blasted
itself recently.. and now I think I know why.. 1.111:
        ${CC} ${LDFLAGS} ${LDSTATIC} -o ${.TARGET}
        -nostdlib -L${DESTDIR}/usr/lib
        -lgcc -lc -lgcc ${LIBCRTEND}

building profiled c library
/build/alpha/tools/usr/bin/ranlib libc_p.a
building shared object c library
/build/alpha/tools/usr/bin/ranlib libc_pic.a
make: don't know how to make /build/alpha/root/usr/lib/crtbeginS.o. Stop

The old did soemthing like the following:
/build/prep/tools/usr/bin/ranlib libc_pic.a
building shared c library (version 12.58)
/build/prep/tools/usr/bin/ld -nostdlib -x -shared -soname -o
12.58  /build/prep/root/usr/lib/crtbeginS.o  --whole-archive libc_pic.a  -L/buil
d/prep/root/usr/lib -R/usr/lib  --no-whole-archive   /build/prep/root/usr/lib/cr

So now.. it would appear.. that because it does the -R${DESTDIR}/usr/lib, its
looing for crtbeginS.o in /build/alpha/root/usr/lib/ and blwing up when it
doesn't find it there.  Of course, this file doesn't arrive there until the
make install stage from what I can tell..  so the fix for this isn't obvious to

Tim Rightnour <>
NetBSD: Free multi-architecture OS
NetBSD Mailing lists on the web: