X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Fs%2Fsco5.h;h=b15f1d62b15b88d71baed81475d25e836ecdbf9c;hb=1029474bacbf710780c8f426b5915d8cbc5b6487;hp=a404b7028480060010f88aa2f20a0b7049ea1199;hpb=6883ee56ec887c2c48abe5b06b5e66aa74031910;p=chise%2Fxemacs-chise.git.1 diff --git a/src/s/sco5.h b/src/s/sco5.h index a404b70..b15f1d6 100644 --- a/src/s/sco5.h +++ b/src/s/sco5.h @@ -37,12 +37,14 @@ Boston, MA 02111-1307, USA. */ #define SYSTEM_TYPE "SCO 3.2v5" /* SCO has ptys, but with weird names */ +#define HAVE_PTYS #define PTY_ITERATION \ for (i = 0; ; i++) #define PTY_NAME_SPRINTF \ sprintf (pty_name, "/dev/ptyp%d", i); #define PTY_TTY_NAME_SPRINTF \ sprintf (pty_name, "/dev/ttyp%d", i); +#define FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY /* We have sockets. Always. */ #ifndef HAVE_SOCKETS @@ -125,14 +127,8 @@ could #define sco and I think everything would work. rjl */ #ifdef _SCO_ELF #undef COFF /* coz we're NOT */ #define UNEXEC "unexelf.o" -#if defined (__GNUC_MINOR__) -#if ((__GNUC__ == 2) && (__GNUC_MINOR__ > 7)) || ((__GNUC__ > 2)) -#define LIB_GCC "-lgcc" -#else -#define LIB_GCC "-lgcc-elf" -#endif -#else /* __GNUC_MINOR__ is undefined */ -#define LIB_GCC "-lgcc-elf" -#endif #endif +/* For GCC 2.7.2.3 we require the "JKJ" version of gcc. + Works fine with egcs and gcc 2.8.x. */ +#define LIB_GCC "`$(LD) $(LDFLAGS) -print-libgcc-file-name`"