changeset 1638:e49c2e6349e4

(LD_SWITCH_SYSTEM): Make alternate version for GCC.
author Richard M. Stallman <rms@gnu.org>
date Sat, 21 Nov 1992 22:12:53 +0000
parents e81cb2cc709e
children 10665fb61dd4
files src/s/sol2.h
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/s/sol2.h	Sat Nov 21 01:51:33 1992 +0000
+++ b/src/s/sol2.h	Sat Nov 21 22:12:53 1992 +0000
@@ -4,8 +4,12 @@
 
 /* Here is how to find X Windows.  The -L option tells the linker where
    to find the libraries at link time, the -R option at run time.  */
+#define C_SWITCH_X_SYSTEM -I/usr/openwin/include
+#ifndef __GNUC__
 #define LD_SWITCH_SYSTEM -L/usr/openwin/lib -R/usr/openwin/lib
-#define C_SWITCH_X_SYSTEM -I/usr/openwin/include
+#else /* GCC */
+#define LD_SWITCH_SYSTEM -L/usr/openwin/lib -Xlinker -R/usr/openwin/lib
+#endif /* GCC */
 
 /* Compile in non-ansi fashion to work around bugs in system header files.  */
 #ifndef __GNUC__