From ad61e7bc2585a6673cc673ecf903b37bfd818fbf Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Sat, 11 Apr 1998 18:16:01 +0000 Subject: [PATCH] (LINKER): Add definition. (LD_SWITCH_SYSTEM): Undo previous change. --- src/s/netbsd.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/s/netbsd.h b/src/s/netbsd.h index 37e912438d6..891e610da61 100644 --- a/src/s/netbsd.h +++ b/src/s/netbsd.h @@ -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 -- 2.39.2