From 588a9a3ece02095d4747dcdab9ba5231c7327552 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 11 Jun 1996 01:39:29 +0000 Subject: [PATCH] [__ELF__] (LD_SWITCH_SYSTEM): Define it. --- src/s/gnu-linux.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h index a809739ae8b..2225f5f8e9e 100644 --- a/src/s/gnu-linux.h +++ b/src/s/gnu-linux.h @@ -157,6 +157,19 @@ Boston, MA 02111-1307, USA. */ #define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o #endif +#ifdef __ELF__ +/* Here is how to find X Windows. LD_SWITCH_X_SITE_AUX gives an -R option + says where to find X windows at run time. */ +#ifndef __GNUC__ +#define LD_SWITCH_SYSTEM LD_SWITCH_X_SITE_AUX +#else /* GCC */ +/* 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 */ +#endif /* __ELF__ */ + /* As of version 1.1.51, Linux does not actually implement SIGIO. */ /* Here we assume that signal.h is already included. */ #ifdef emacs -- 2.39.2