aboutsummaryrefslogtreecommitdiffstats
path: root/src/s
diff options
context:
space:
mode:
authorRichard M. Stallman1997-10-11 03:57:20 +0000
committerRichard M. Stallman1997-10-11 03:57:20 +0000
commit12f230a16e2383b6696dde353f513ff7545f64a2 (patch)
tree57e3414b247982630194a6a132b575c658f8115d /src/s
parent62d9f4b03f51b27b7838a69cc127f431d8737903 (diff)
downloademacs-12f230a16e2383b6696dde353f513ff7545f64a2.tar.gz
emacs-12f230a16e2383b6696dde353f513ff7545f64a2.zip
(LD_SWITCH_SYSTEM): Use -Wl,-rpath if __ELF__.
Diffstat (limited to 'src/s')
-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__ */