# HG changeset patch # User Karl Heuer # Date 892318561 0 # Node ID 6cc3bb84b60e8f211a80da9253317446f1b02b60 # Parent 78c4044476c0e8b3e2bf6b6a173ec92aa76b9a02 (LINKER): Add definition. (LD_SWITCH_SYSTEM): Undo previous change. diff -r 78c4044476c0 -r 6cc3bb84b60e src/s/netbsd.h --- a/src/s/netbsd.h Sat Apr 11 18:04:12 1998 +0000 +++ b/src/s/netbsd.h Sat Apr 11 18:16:01 1998 +0000 @@ -72,3 +72,10 @@ which is what OSF1 uses. */ #define LD_SWITCH_SYSTEM `echo LD_SWITCH_X_SITE_AUX | sed -e 's/-R/-Wl,-rpath,/'` #endif /* __ELF__ */ + +/* On post 1.3 releases of NetBSD, gcc -nostdlib also clears + the library search parth, i.e. it won't search /usr/lib + for libc and friends. Using -nostartfiles instead avoids + this problem, and will also work on earlier NetBSD releases */ + +#define LINKER $(CC) -nostartfiles