diff options
author | joerg <joerg> | 2007-04-20 15:05:22 +0000 |
---|---|---|
committer | joerg <joerg> | 2007-04-20 15:05:22 +0000 |
commit | 452f954220ce32685462afc90d5d52d5b040293a (patch) | |
tree | c0f3e26e2f5f717eb190642d4a4efc1425f48d3f /editors/xemacs/files | |
parent | 94d77ebb7745dcf9896ea41a2f1d9d25e7477ca7 (diff) | |
download | pkgsrc-452f954220ce32685462afc90d5d52d5b040293a.tar.gz |
Fix build on DragonFly 1.8+
Diffstat (limited to 'editors/xemacs/files')
-rw-r--r-- | editors/xemacs/files/dragonfly.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/editors/xemacs/files/dragonfly.h b/editors/xemacs/files/dragonfly.h index 742fce1e649..7c6a4e4df33 100644 --- a/editors/xemacs/files/dragonfly.h +++ b/editors/xemacs/files/dragonfly.h @@ -33,9 +33,20 @@ #include <stddef.h> #endif #define LD_SWITCH_SYSTEM + +#if defined(__GNUC__) && __GNUC__ == 3 && __GNUC_MINOR__ == 4 +# ifndef DFLY_PRE_17_CRT +#define START_FILES pre-crt0.o /usr/lib/gcc34/crt1.o /usr/lib/gcc34/crti.o /usr/lib/gcc34/crtbegin.o +#define LIB_STANDARD -L/usr/lib/gcc34 -lgcc -lc -lgcc /usr/lib/gcc34/crtend.o /usr/lib/gcc34/crtn.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 -L/usr/lib/gcc34 -lgcc -lc -lgcc /usr/lib/crtend.o /usr/lib/crtn.o +# endif +#else +#error "Add compiler version magic" +#endif + +#define UNEXEC "unexelf.o" #define LINKER "$(CC) -nostdlib" #undef LIB_GCC #define LIB_GCC |