diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/s/netbsd.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 @@ | |||
| 72 | which is what OSF1 uses. */ | 72 | which is what OSF1 uses. */ |
| 73 | #define LD_SWITCH_SYSTEM `echo LD_SWITCH_X_SITE_AUX | sed -e 's/-R/-Wl,-rpath,/'` | 73 | #define LD_SWITCH_SYSTEM `echo LD_SWITCH_X_SITE_AUX | sed -e 's/-R/-Wl,-rpath,/'` |
| 74 | #endif /* __ELF__ */ | 74 | #endif /* __ELF__ */ |
| 75 | |||
| 76 | /* On post 1.3 releases of NetBSD, gcc -nostdlib also clears | ||
| 77 | the library search parth, i.e. it won't search /usr/lib | ||
| 78 | for libc and friends. Using -nostartfiles instead avoids | ||
| 79 | this problem, and will also work on earlier NetBSD releases */ | ||
| 80 | |||
| 81 | #define LINKER $(CC) -nostartfiles | ||