2000-07-12 15:13:08 +00:00
|
|
|
--- src/s/freebsd.h.orig Mon Jun 10 05:14:32 1996
|
|
|
|
+++ src/s/freebsd.h Tue Jul 11 16:44:14 2000
|
1998-10-10 04:37:24 +00:00
|
|
|
@@ -1,5 +1,15 @@
|
|
|
|
/* s/ file for freebsd system. */
|
1997-05-26 13:34:38 +00:00
|
|
|
|
1998-10-10 04:37:24 +00:00
|
|
|
+/* Get the correct __FreeBSD_version, even if this is before that was
|
|
|
|
+ defined. */
|
|
|
|
+#ifndef __FreeBSD__
|
|
|
|
+#define __FreeBSD_version 199401
|
|
|
|
+#elif __FreeBSD__ == 1
|
|
|
|
+#define __FreeBSD_version 199405
|
1997-05-26 13:34:38 +00:00
|
|
|
+#else
|
1998-10-10 04:37:24 +00:00
|
|
|
+#include <osreldate.h>
|
1997-05-26 13:34:38 +00:00
|
|
|
+#endif
|
|
|
|
+
|
1998-10-10 04:37:24 +00:00
|
|
|
/* '__FreeBSD__' is defined by the preprocessor on FreeBSD-1.1 and up.
|
|
|
|
Earlier versions do not have shared libraries, so inhibit them.
|
|
|
|
You can inhibit them on newer systems if you wish
|
2000-07-12 15:13:08 +00:00
|
|
|
@@ -33,8 +43,9 @@
|
|
|
|
|
1998-10-10 04:37:24 +00:00
|
|
|
#define LIBS_DEBUG
|
|
|
|
#define LIBS_SYSTEM -lutil
|
2000-07-12 15:13:08 +00:00
|
|
|
+#if __FreeBSD_version < 400000
|
1998-10-10 04:37:24 +00:00
|
|
|
#define LIBS_TERMCAP -ltermcap
|
|
|
|
-#define LIB_GCC -lgcc
|
2000-07-12 15:13:08 +00:00
|
|
|
+#endif
|
1998-10-10 04:37:24 +00:00
|
|
|
|
1997-05-26 13:34:38 +00:00
|
|
|
#define SYSV_SYSTEM_DIR
|
|
|
|
|
2000-07-12 15:13:08 +00:00
|
|
|
@@ -42,12 +53,33 @@
|
1998-10-10 04:37:24 +00:00
|
|
|
#undef BSD_PGRPS
|
|
|
|
#define GETPGRP_NO_ARG
|
|
|
|
|
|
|
|
+#ifdef __ELF__
|
|
|
|
+
|
|
|
|
+#define LD_SWITCH_SYSTEM
|
1999-01-23 14:28:28 +00:00
|
|
|
+#ifdef i386
|
1998-10-10 04:37:24 +00:00
|
|
|
+#define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o
|
|
|
|
+#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o /usr/lib/crtn.o
|
1999-01-23 14:28:28 +00:00
|
|
|
+#else
|
|
|
|
+#define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crtbegin.o
|
|
|
|
+#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o
|
|
|
|
+#endif
|
|
|
|
+#define UNEXEC unexelf.o
|
1998-10-10 04:37:24 +00:00
|
|
|
+#undef LIB_GCC
|
|
|
|
+#define LIB_GCC
|
|
|
|
+
|
|
|
|
+#else /* not __ELF__ */
|
|
|
|
+
|
|
|
|
#ifndef NO_SHARED_LIBS
|
1997-12-23 05:35:56 +00:00
|
|
|
#define LD_SWITCH_SYSTEM -e start -dc -dp
|
|
|
|
#define HAVE_TEXT_START /* No need to define `start_of_text'. */
|
1998-10-10 04:37:24 +00:00
|
|
|
+#if __FreeBSD_version >= 300002
|
|
|
|
+#define START_FILES pre-crt0.o /usr/lib/aout/crt0.o
|
|
|
|
+#else /* __FreeBSD_version < 300002 */
|
1997-12-23 05:35:56 +00:00
|
|
|
#define START_FILES pre-crt0.o /usr/lib/crt0.o
|
|
|
|
-#define UNEXEC unexsunos4.o
|
1998-10-10 04:37:24 +00:00
|
|
|
+#endif /* __FreeBSD_version < 300002 */
|
1997-12-23 05:35:56 +00:00
|
|
|
+#define UNEXEC unexfreebsd.o
|
|
|
|
#define RUN_TIME_REMAP
|
1998-10-10 04:37:24 +00:00
|
|
|
+#define LIB_GCC -lgcc
|
1997-12-23 05:35:56 +00:00
|
|
|
|
|
|
|
#ifndef N_TRELOFF
|
1998-10-10 04:37:24 +00:00
|
|
|
#define N_PAGSIZ(x) __LDPGSZ
|
2000-07-12 15:13:08 +00:00
|
|
|
@@ -63,6 +95,8 @@
|
1998-10-10 04:37:24 +00:00
|
|
|
#endif /* __FreeBSD__ */
|
|
|
|
#endif /* NO_SHARED_LIBS */
|
|
|
|
|
|
|
|
+#endif /* not __ELF__ */
|
|
|
|
+
|
|
|
|
#define HAVE_WAIT_HEADER
|
|
|
|
#define HAVE_GETLOADAVG
|
|
|
|
/*#define HAVE_GETPAGESIZE /* configure now puts this in config.h */
|
2000-07-12 15:13:08 +00:00
|
|
|
@@ -80,6 +114,8 @@
|
1997-04-09 07:24:35 +00:00
|
|
|
#define BSD 199103
|
|
|
|
#elif __FreeBSD__ == 2
|
|
|
|
#define BSD 199306
|
1999-04-10 00:14:28 +00:00
|
|
|
+#elif __FreeBSD__ >= 3
|
1997-04-09 07:24:35 +00:00
|
|
|
+#define BSD 199506
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define WAITTYPE int
|