31 lines
1.1 KiB
Text
31 lines
1.1 KiB
Text
$NetBSD: patch-aa,v 1.1 2009/04/30 18:19:28 hasso Exp $
|
|
|
|
--- os/dragonfly/ccconfig.h.orig 2008-06-03 08:58:22 +0300
|
|
+++ os/dragonfly/ccconfig.h 2009-04-30 15:37:16 +0300
|
|
@@ -31,14 +31,26 @@
|
|
* Various settings that controls how the C compiler works.
|
|
*/
|
|
|
|
+#include <sys/param.h>
|
|
+
|
|
/* common cpp predefines */
|
|
#define CPPADD { "-D__DragonFly__", "-D__ELF__", NULL, }
|
|
#define DYNLINKER { "-dynamic-linker", "/usr/libexec/ld-elf.so.2", NULL }
|
|
+
|
|
+#if __DragonFly_version < 200202
|
|
#define CRT0FILE "/usr/lib/gcc34/crt1.o"
|
|
#define CRT0FILE_PROFILE "/usr/lib/gcc34/gcrt1.o"
|
|
#define STARTFILES { "/usr/lib/gcc34/crti.o", "/usr/lib/gcc34/crtbegin.o", NULL }
|
|
#define LIBCLIBS { "-lc", "-L/usr/lib/gcc34", "-lgcc", NULL }
|
|
#define ENDFILES { "/usr/lib/gcc34/crtend.o", "/usr/lib/gcc34/crtn.o", NULL }
|
|
+#else
|
|
+#define CRT0FILE "/usr/lib/crt1.o"
|
|
+#define CRT0FILE_PROFILE "/usr/lib/gcrt1.o"
|
|
+#define STARTFILES { "/usr/lib/crti.o", "/usr/lib/gcc41/crtbegin.o", NULL }
|
|
+#define LIBCLIBS { "-lc", "-L/usr/lib/gcc41", "-lgcc", NULL }
|
|
+#define ENDFILES { "/usr/lib/gcc41/crtend.o", "/usr/lib/crtn.o", NULL }
|
|
+#endif
|
|
+
|
|
#define STARTLABEL "_start"
|
|
|
|
#if defined(mach_i386)
|