summaryrefslogtreecommitdiff
path: root/src/s
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-05-23 07:14:38 +0000
committerRichard M. Stallman <rms@gnu.org>1994-05-23 07:14:38 +0000
commitafce6ded2dc010a6e6cd7eb78f04d39aeda35812 (patch)
tree3ef008ad556c3cebbef080f3e48a176a7c523e31 /src/s
parentd3da379e6cddea11d1decc52fb3d382bdb17ab91 (diff)
downloademacs-afce6ded2dc010a6e6cd7eb78f04d39aeda35812.tar.gz
(LD_SWITCH_SYSTEM): Add conditionals for HPUX_USE_SHLIBS.
Delete explicit -Xlinker in GCC case.
Diffstat (limited to 'src/s')
-rw-r--r--src/s/hpux8.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/s/hpux8.h b/src/s/hpux8.h
index 852e175b016..6960c4c6dc3 100644
--- a/src/s/hpux8.h
+++ b/src/s/hpux8.h
@@ -18,23 +18,23 @@
Note GCC automatically passes -a archive to ld, and it has its own
conflicting -a. */
#ifdef __GNUC__
-#define LD_SWITCH_SYSTEM -Xlinker -a -Xlinker archive
-
/* No need to specify roundabout way of linking temacs. */
#define ORDINARY_LINK
-#else
-#if defined(hp9000s700) || defined(__hp9000s700)
-#define LD_SWITCH_SYSTEM -a archive -L/lib/pa1.1
-#else
-#define LD_SWITCH_SYSTEM -a archive
-#endif
#endif
-#if 0 /* This should no longer be necessary now that
- C_SWITCH_... are passed down when compiling oldXMenu. */
-/* Specify compiler options for compiling oldXMenu. */
-#define OLDXMENU_OPTIONS CFLAGS="-I/usr/include/X11R5 -I/usr/include/X11R4"
+#if ! defined (__GNUC__) && (defined(hp9000s700) || defined(__hp9000s700))
+#ifdef HPUX_USE_SHLIBS
+#define LD_SWITCH_SYSTEM -L/lib/pa1.1 -L/usr/lib/X11R5 -L/usr/lib/X11R4
+#else
+#define LD_SWITCH_SYSTEM -a archive -L/lib/pa1.1 -L/usr/lib/X11R5 -L/usr/lib/X11R4
+#endif
+#else /* __GNUC__ or not (defined(hp9000s700) || defined(__hp9000s700)) */
+#ifdef HPUX_USE_SHLIBS
+#define LD_SWITCH_SYSTEM -L/usr/lib/X11R5 -L/usr/lib/X11R4
+#else
+#define LD_SWITCH_SYSTEM -a archive -L/usr/lib/X11R5 -L/usr/lib/X11R4
#endif
+#endif /* __GNUC__ or not (defined(hp9000s700) || defined(__hp9000s700)) */
/* Some hpux 8 machines seem to have TIOCGWINSZ,
and none have sioctl.h, so might as well define this. */