aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/s/netbsd.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/s/netbsd.h b/src/s/netbsd.h
index 280b316ee5f..37e912438d6 100644
--- a/src/s/netbsd.h
+++ b/src/s/netbsd.h
@@ -43,7 +43,7 @@
43 43
44#define GETPGRP_NO_ARG 44#define GETPGRP_NO_ARG
45 45
46#ifndef NO_SHARED_LIBS 46#if !defined (NO_SHARED_LIBS) && ! defined (__ELF__)
47/* These definitions should work for either dynamic or static linking, 47/* These definitions should work for either dynamic or static linking,
48 whichever is the default for `cc -nostdlib'. */ 48 whichever is the default for `cc -nostdlib'. */
49#define HAVE_TEXT_START /* No need to define `start_of_text'. */ 49#define HAVE_TEXT_START /* No need to define `start_of_text'. */
@@ -65,3 +65,10 @@
65#define NO_MATHERR 65#define NO_MATHERR
66 66
67#define AMPERSAND_FULL_NAME 67#define AMPERSAND_FULL_NAME
68
69#ifdef __ELF__
70/* Here is how to find X Windows. LD_SWITCH_X_SITE_AUX gives an -R option
71 says where to find X windows at run time. We convert it to a -rpath option
72 which is what OSF1 uses. */
73#define LD_SWITCH_SYSTEM `echo LD_SWITCH_X_SITE_AUX | sed -e 's/-R/-Wl,-rpath,/'`
74#endif /* __ELF__ */