2003-02-02 08:10:21 +00:00
|
|
|
--- src/s/freebsd.h.orig Mon Jan 13 03:08:43 2003
|
|
|
|
+++ src/s/freebsd.h Mon Jan 13 03:10:05 2003
|
2000-07-05 14:33:21 +00:00
|
|
|
@@ -41,8 +41,18 @@
|
|
|
|
|
|
|
|
#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)
|
1998-12-13 14:27:06 +00:00
|
|
|
|
|
|
|
+/* Use XPG4 Library for FreeBSD */
|
2000-07-05 14:33:21 +00:00
|
|
|
+#define LIBS_XPG
|
|
|
|
+#if (__FreeBSD_version >= 220000 && __FreeBSD_version < 400020) \
|
|
|
|
+ || (__FreeBSD_version >= 500000 && __FreeBSD_version < 500005)
|
1998-12-13 14:27:06 +00:00
|
|
|
+#ifdef USE_XPG
|
2000-07-05 14:33:21 +00:00
|
|
|
+#undef LIBS_XPG
|
1998-12-13 14:27:06 +00:00
|
|
|
+#define LIBS_XPG -lxpg4
|
|
|
|
+#endif
|
|
|
|
+#endif
|
|
|
|
+
|
2000-07-05 14:33:21 +00:00
|
|
|
#define LIBS_DEBUG
|
|
|
|
-#define LIBS_SYSTEM -lutil
|
|
|
|
+#define LIBS_SYSTEM -lutil LIBS_XPG
|
|
|
|
#if __FreeBSD_version < 400000
|
|
|
|
#define LIBS_TERMCAP -ltermcap
|
|
|
|
#endif
|
2003-02-02 08:10:21 +00:00
|
|
|
@@ -56,9 +66,20 @@
|
1999-01-23 14:28:28 +00:00
|
|
|
#ifdef __ELF__
|
|
|
|
|
|
|
|
#define LD_SWITCH_SYSTEM
|
|
|
|
+
|
2003-02-02 08:10:21 +00:00
|
|
|
+#if __FreeBSD_version >= 500000
|
|
|
|
+#define LD_SWITCH_SYSTEM_TEMACS -znocombreloc
|
|
|
|
+#endif
|
|
|
|
+
|
1999-01-23 14:28:28 +00:00
|
|
|
+#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
|
|
|
|
|