1999-01-23 14:28:28 +00:00
|
|
|
--- src/s/freebsd.h.orig Wed Aug 19 16:25:36 1998
|
1999-02-28 08:10:07 +00:00
|
|
|
+++ src/s/freebsd.h Fri Feb 12 22:27:28 1999
|
1998-12-13 14:27:06 +00:00
|
|
|
@@ -45,6 +45,13 @@
|
|
|
|
#define LIBS_SYSTEM -lutil
|
|
|
|
#define LIBS_TERMCAP -ltermcap
|
|
|
|
|
|
|
|
+/* Use XPG4 Library for FreeBSD */
|
|
|
|
+#if __FreeBSD_version >= 220000
|
|
|
|
+#ifdef USE_XPG
|
|
|
|
+#define LIBS_XPG -lxpg4
|
|
|
|
+#endif
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
#define SYSV_SYSTEM_DIR
|
|
|
|
|
|
|
|
/* freebsd has POSIX-style pgrp behavior. */
|
1999-01-23 14:28:28 +00:00
|
|
|
@@ -54,9 +61,16 @@
|
|
|
|
#ifdef __ELF__
|
|
|
|
|
|
|
|
#define LD_SWITCH_SYSTEM
|
|
|
|
+
|
|
|
|
+#ifdef __alpha__
|
|
|
|
+#define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crtbegin.o
|
|
|
|
+#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o
|
|
|
|
+#else
|
|
|
|
#define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o
|
|
|
|
-#define UNEXEC unexelf.o
|
|
|
|
#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o /usr/lib/crtn.o
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
+#define UNEXEC unexelf.o
|
|
|
|
#undef LIB_GCC
|
|
|
|
#define LIB_GCC
|
|
|
|
|
1999-02-28 08:10:07 +00:00
|
|
|
@@ -109,6 +123,8 @@
|
|
|
|
#define BSD_SYSTEM 199306
|
|
|
|
#elif __FreeBSD__ == 3
|
|
|
|
#define BSD_SYSTEM 199506
|
|
|
|
+#elif __FreeBSD__ == 4
|
|
|
|
+#define BSD_SYSTEM 199901
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define WAITTYPE int
|