Subject: compat_netbsd32 problems
To: None <port-sparc64@NetBSD.org>
From: Raymond Meyer <raymond.meyer@rambler.ru>
List: port-sparc64
Date: 04/16/2007 03:03:04
Hi, I've got 32-bit sparc sets extracted into /emul/netbsd32. I'm trying to
use /emul/netbsd32/usr/bin/gcc to compile 32-bit packages. I've come across the
following problem:
ultra10# /emul/netbsd32/usr/bin/gcc -Wl,-R/no/such/dir test.c; echo $?
ld: /no/such/dir: No such file: No such file or directory
1
but:
ultra10# /usr/bin/gcc -Wl,-R/no/such/dir test.c; echo $?
0
Many software packages pass linker options to gcc via -Wl compiler flag. It
fails to compile because it complains about directories that don't exist. Any
idea how to fix this?
ultra10# uname -a
NetBSD ultra10 4.99.16 NetBSD 4.99.16 (GENERIC) #0: Tue Apr 10 07:44:12 BST 2007 root@ultra10:/opt/obj.sparc64/sys/arch/sparc64/compile/GENERIC sparc64