From a100548014c325e06d360997c9a305932d909cfc Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 22 Mar 1993 19:50:35 +0000 Subject: Decide automatically whether to use COFF or ELF. --- src/s/dgux.h | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'src/s/dgux.h') diff --git a/src/s/dgux.h b/src/s/dgux.h index 437e1106f78..47f5e2f6952 100644 --- a/src/s/dgux.h +++ b/src/s/dgux.h @@ -118,11 +118,21 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ /* If your system uses COFF (Common Object File Format) then define the preprocessor symbol "COFF". - DGUX can use either COFF or ELF. To use ELF format, define ELF. */ + DGUX can use either COFF or ELF; the default is ELF. + To compile for COFF (or BCS) use the TARGET_BINARY_INTERFACE + environment variable. */ -#ifndef ELF +#if defined(_DGUXCOFF_TARGET) || defined(_DGUXBCS_TARGET) +#undef ELF +#ifndef COFF #define COFF -#endif +#endif /* COFF */ +#else /* defined(_DGUXCOFF_TARGET) || defined(_DGUXBCS_TARGET) */ +#undef COFF +#ifndef ELF +#define ELF +#endif /* ELF */ +#endif /* defined(_DGUXCOFF_TARGET) || defined(_DGUXBCS_TARGET) */ #ifndef COFF /* People will probably find this apparently unreliable till the NFS dumping bug is fixed. */ -- cgit v1.2.1