changeset 7356:55588e31b258

(LD_SWITCH_SYSTEM): Use ./prefix-args, not -Xlinker directly.
author Richard M. Stallman <rms@gnu.org>
date Fri, 06 May 1994 08:30:32 +0000
parents 2e1388fa0119
children cebaa850212d
files src/s/sol2-3.h src/s/sol2.h
diffstat 2 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/s/sol2-3.h	Fri May 06 08:16:14 1994 +0000
+++ b/src/s/sol2-3.h	Fri May 06 08:30:32 1994 +0000
@@ -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 */
--- a/src/s/sol2.h	Fri May 06 08:16:14 1994 +0000
+++ b/src/s/sol2.h	Fri May 06 08:30:32 1994 +0000
@@ -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.  */