Subject: Re: problem building netbsd-3 distribution
To: C=C3=A9sar_Catri=C3=A1n?= C. <>
From: =?UTF-8?Q?C=C3=A9sar_Catri=C3=A1n?= C. <>
List: current-users
Date: 08/19/2005 08:53:29
On Thu, 18 Aug 2005 09:31:15 -0400
"César Catrián C." <> wrote:

> I had this problem trying to build netbsd-3 with sources of the past 12 hours:
> $ ./ -U -u -x distribution
> #      link  ld.elf_so
> /home/cetrox/src/src/tooldir.NetBSD-2.0-i386/bin/i386--netbsdelf-gcc -shared -symbolic -nostartfiles -Wl,-Wl,-rpath-link,/usr/pkg/lib -Wl,-non_shared -Wl,-e -Wl,.rtld_start -o ld.elf_so rtld_start.o mdreloc.o rtld.o reloc.o symbol.o malloc.o xmalloc.o xprintf.o debug.o map_object.o load.o search.o headers.o paths.o -L/home/cetrox/src/src/lib/libc/obj -L/home/cetrox/src/src/destdir.i386/usr/lib -lc_pic
> /home/cetrox/src/src/tooldir.NetBSD-2.0-i386/lib/gcc-lib/i386--netbsdelf/3.3.3/../../../../i386--netbsdelf/bin/ld: unrecognized option '-Wl'
> /home/cetrox/src/src/tooldir.NetBSD-2.0-i386/lib/gcc-lib/i386--netbsdelf/3.3.3/../../../../i386--netbsdelf/bin/ld: use the --help option for usage information
> collect2: ld returned 1 exit status
> *** Failed target:  ld.elf_so
> *** Failed command: /home/cetrox/src/src/tooldir.NetBSD-2.0-i386/bin/i386--netbsdelf-gcc -shared -symbolic -nostartfiles -Wl,-Wl,-rpath-link,/usr/pkg/lib -Wl,-non_shared -Wl,-e -Wl,.rtld_start -o ld.elf_so rtld_start.o 

I had a setting in my /etc/mk.conf, LDFLAGS+= -Wl,-rpath-link,/usr/pkg/lib
My build seems to suck the environment from /etc/mk.conf, isn't?