diff options
author | obrien <obrien@FreeBSD.org> | 2007-09-18 22:31:01 +0800 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2007-09-18 22:31:01 +0800 |
commit | 72cac65475f3e84ad76806ded183e1e849cd2905 (patch) | |
tree | 1994fc373aa2e1d035119c45a683681efbb3b3d8 /lang/pcc | |
parent | 7a863636906eda430e06ab30515bf422d63ddd51 (diff) | |
download | freebsd-ports-graphics-72cac65475f3e84ad76806ded183e1e849cd2905.tar.gz freebsd-ports-graphics-72cac65475f3e84ad76806ded183e1e849cd2905.tar.zst freebsd-ports-graphics-72cac65475f3e84ad76806ded183e1e849cd2905.zip |
Tweak the FreeBSD configuration.
Diffstat (limited to 'lang/pcc')
-rw-r--r-- | lang/pcc/files/ccconfig.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lang/pcc/files/ccconfig.h b/lang/pcc/files/ccconfig.h index 29bcbdb33b1..fb2e3a08e37 100644 --- a/lang/pcc/files/ccconfig.h +++ b/lang/pcc/files/ccconfig.h @@ -2,6 +2,7 @@ /* $Id: ccconfig.h,v 1.2 2004/12/02 21:32:25 ragge Exp $ */ /* + * Copyright (c) 2007 David O'Brien * Copyright (c) 2004 Anders Magnusson (ragge@ludd.luth.se). * All rights reserved. * @@ -33,14 +34,15 @@ */ /* common cpp predefines */ -#define CPPADD { "-D__FreeBSD__", "-D__ELF__", NULL, } +#define CPPADD { "-D__FreeBSD__", "-D__ELF__", "-D__unix__=1", "-D__unix=1", "-D__STDC__=1", NULL, } #define DYNLINKER { "-dynamic-linker", "/libexec/ld-elf.so.1", NULL } -#define CRT0FILE "/usr/lib/crt0.o" +#define CRT0FILE "/usr/lib/crt1.o" #define STARTFILES { "/usr/lib/crti.o", "/usr/lib/crtbegin.o", NULL } #define ENDFILES { "/usr/lib/crtend.o", "/usr/lib/crtn.o", NULL } +#define STARTLABEL "_start" #if defined(mach_x86) -#define CPPMDADD { "-D__i386__", NULL, } +#define CPPMDADD { "-D__i386__", "-D__i386", NULL, } #else #error defines for arch missing #endif |