summaryrefslogtreecommitdiff
path: root/src/s
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-05-06 08:30:32 +0000
committerRichard M. Stallman <rms@gnu.org>1994-05-06 08:30:32 +0000
commit510328f2de002debdec7a90c46fb08bf6a73cde8 (patch)
tree1af8535ccce7754a420d82f08dcbf1ba8b82507b /src/s
parentecf2bd253293ea70e780795025ace39bfcffec6c (diff)
downloademacs-510328f2de002debdec7a90c46fb08bf6a73cde8.tar.gz
emacs-510328f2de002debdec7a90c46fb08bf6a73cde8.tar.bz2
emacs-510328f2de002debdec7a90c46fb08bf6a73cde8.zip
(LD_SWITCH_SYSTEM): Use ./prefix-args, not -Xlinker directly.
Diffstat (limited to 'src/s')
-rw-r--r--src/s/sol2-3.h6
-rw-r--r--src/s/sol2.h5
2 files changed, 9 insertions, 2 deletions
diff --git a/src/s/sol2-3.h b/src/s/sol2-3.h
index e5fdda8a693..d17ec1851bc 100644
--- a/src/s/sol2-3.h
+++ b/src/s/sol2-3.h
@@ -10,5 +10,9 @@
#ifndef __GNUC__
#define LD_SWITCH_SYSTEM -L /usr/ccs/lib LD_SWITCH_X_SITE_AUX
#else /* GCC */
-#define LD_SWITCH_SYSTEM -L /usr/ccs/lib -Xlinker LD_SWITCH_X_SITE_AUX
+/* We use ./prefix-args because we don't know whether LD_SWITCH_X_SITE_AUX
+ has anything in it. It can be empty.
+ This works ok in src. Luckily lib-src does not use LD_SWITCH_SYSTEM. */
+#define LD_SWITCH_SYSTEM -L /usr/ccs/lib \
+ `./prefix-args -Xlinker LD_SWITCH_X_SITE_AUX`
#endif /* GCC */
diff --git a/src/s/sol2.h b/src/s/sol2.h
index 8a7dc0e4ab0..f92e0de30e5 100644
--- a/src/s/sol2.h
+++ b/src/s/sol2.h
@@ -15,7 +15,10 @@
#ifndef __GNUC__
#define LD_SWITCH_SYSTEM LD_SWITCH_X_SITE_AUX
#else /* GCC */
-#define LD_SWITCH_SYSTEM -Xlinker LD_SWITCH_X_SITE_AUX
+/* We use ./prefix-args because we don't know whether LD_SWITCH_X_SITE_AUX
+ has anything in it. It can be empty.
+ This works ok in src. Luckily lib-src does not use LD_SWITCH_SYSTEM. */
+#define LD_SWITCH_SYSTEM `./prefix-args -Xlinker LD_SWITCH_X_SITE_AUX`
#endif /* GCC */
/* Compile in non-ansi fashion to work around bugs in system header files. */