From 72cac65475f3e84ad76806ded183e1e849cd2905 Mon Sep 17 00:00:00 2001 From: obrien Date: Tue, 18 Sep 2007 14:31:01 +0000 Subject: Tweak the FreeBSD configuration. --- lang/pcc/files/ccconfig.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lang/pcc') 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 -- cgit