Deleted Added
full compact
ccconfig.h (1.1.1.2) ccconfig.h (1.1.1.3)
1/* $Id: ccconfig.h,v 1.1.1.2 2009/09/04 00:27:35 gmcgarry Exp $ */
1/* Id: ccconfig.h,v 1.16 2009/09/17 02:58:22 gmcgarry Exp */
2/* $NetBSD: ccconfig.h,v 1.1.1.3 2010/06/03 18:57:59 plunky Exp $ */
2
3/*
4 * Copyright (c) 2004 Anders Magnusson (ragge@ludd.luth.se).
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:

--- 21 unchanged lines hidden (view full) ---

31 * Various settings that controls how the C compiler works.
32 */
33
34#ifndef LIBDIR
35#define LIBDIR "/usr/lib/"
36#endif
37
38/* common cpp predefines */
3
4/*
5 * Copyright (c) 2004 Anders Magnusson (ragge@ludd.luth.se).
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:

--- 21 unchanged lines hidden (view full) ---

32 * Various settings that controls how the C compiler works.
33 */
34
35#ifndef LIBDIR
36#define LIBDIR "/usr/lib/"
37#endif
38
39/* common cpp predefines */
39#define CPPADD { "-D__linux__", "-D__ELF__", NULL, }
40#define CPPADD { "-D__linux__", "-D__ELF__", NULL, }
40
41#define CRT0FILE LIBDIR "crt1.o"
42#define CRT0FILE_PROFILE LIBDIR "gcrt1.o"
43
41
42#define CRT0FILE LIBDIR "crt1.o"
43#define CRT0FILE_PROFILE LIBDIR "gcrt1.o"
44
44#define LIBCLIBS { "-lc", "-lpcc", NULL }
45#define LIBCLIBS_PROFILE LIBCLIBS
45#define LIBCLIBS { "-lc", "-lpcc", NULL }
46#define LIBCLIBS_PROFILE LIBCLIBS
46
47#define STARTFILES { LIBDIR "crti.o", PCCLIBDIR "crtbegin.o", NULL }
47
48#define STARTFILES { LIBDIR "crti.o", PCCLIBDIR "crtbegin.o", NULL }
48#define ENDFILES { PCCLIBDIR "crtend.o", LIBDIR "crtn.o", NULL }
49#define ENDFILES { PCCLIBDIR "crtend.o", LIBDIR "crtn.o", NULL }
49
50
51#define STARTFILES_S { LIBDIR "crti.o", PCCLIBDIR "crtbegin.o", NULL }
52#define ENDFILES_S { PCCLIBDIR "crtend.o", LIBDIR "crtn.o", NULL }
53
50#define STARTLABEL "_start"
51
52#if defined(mach_i386)
54#define STARTLABEL "_start"
55
56#if defined(mach_i386)
53#define CPPMDADD { "-D__i386__", NULL, }
54#define DYNLINKER { "-dynamic-linker", "/lib/ld-linux.so.2", NULL }
57#define CPPMDADD { "-D__i386__", NULL, }
58#define DYNLINKER { "-dynamic-linker", "/lib/ld-linux.so.2", NULL }
55#elif defined(mach_powerpc)
59#elif defined(mach_powerpc)
56#define CPPMDADD { "-D__ppc__", NULL, }
57#define DYNLINKER { "-dynamic-linker", "/lib/ld-linux.so.2", NULL }
60#define CPPMDADD { "-D__ppc__", NULL, }
61#define DYNLINKER { "-dynamic-linker", "/lib/ld-linux.so.2", NULL }
58#elif defined(mach_amd64)
59#define CPPMDADD { "-D__x86_64__", NULL, }
60#define DYNLINKER { "-dynamic-linker", "/lib64/ld-linux-x86-64.so.2", NULL }
61#else
62#error defines for arch missing
63#endif
64
62#elif defined(mach_amd64)
63#define CPPMDADD { "-D__x86_64__", NULL, }
64#define DYNLINKER { "-dynamic-linker", "/lib64/ld-linux-x86-64.so.2", NULL }
65#else
66#error defines for arch missing
67#endif
68
65#define STABS
69#define STABS
66#define ELFABI
70#define ELFABI