Quick Search:

View

Revision:
Expand:  
Changeset: MAIN:ragge:20120805143500

Diff

Diff from 1.9 to:

Annotations

Annotate by Age | Author | Mixed | None
/fisheye/browse/pcc/pcc/os/mirbsd/ccconfig.h

Annotated File View

ragge
1.9
1 /* $Id: ccconfig.h,v 1.9 2012/08/05 14:35:00 ragge Exp $ */
ragge
1.1
2 /*-
ragge
1.5
3  * Copyright (c) 2007, 2008
ragge
1.1
4  *      Thorsten Glaser <tg@mirbsd.de>
5  *
6  * Provided that these terms and disclaimer and all copyright notices
7  * are retained or reproduced in an accompanying document, permission
8  * is granted to deal in this work without restriction, including un-
9  * limited rights to use, publicly perform, distribute, sell, modify,
10  * merge, give away, or sublicence.
11  *
12  * This work is provided "AS IS" and WITHOUT WARRANTY of any kind, to
13  * the utmost extent permitted by applicable law, neither express nor
14  * implied; without malicious intent or gross negligence. In no event
15  * may a licensor, author or contributor be held liable for indirect,
16  * direct, other damage, loss, or other issues arising in any way out
17  * of dealing in the work, even if advised of the possibility of such
18  * damage or existence of a defect, except proven that it results out
19  * of said person's immediate fault when using the work as intended.
20  */
21
gmcgarry
1.6
22 /**
ragge
1.1
23  * Configuration for pcc on a MirOS BSD (i386 or sparc) target
24  */
25
gmcgarry
1.6
26 /* === mi part === */
ragge
1.1
27
gmcgarry
1.6
28 /* cpp MI defines */
29 #define CPPADD                  {               \
ragge
1.1
30         "-D__MirBSD__",                         \
31         "-D__OpenBSD__",                        \
32         "-D__unix__",                           \
33         "-D__ELF__",                            \
34         NULL                                    \
35 }
gmcgarry
1.6
36
37 /* for dynamically linked binaries */
38 #define DYNLINKER               {               \
ragge
1.1
39         "-dynamic-linker",                      \
40         "/usr/libexec/ld.so",                   \
41         NULL                                    \
gmcgarry
1.6
42 }
43
ragge
1.9
44 #define CRTEND_T        "crtend.o"
45 #define DEFLIBS         { "-lc", NULL }
gmcgarry
1.6
46
47 /* === md part === */
48
ragge
1.2
49 #if defined(mach_i386)
gmcgarry
1.6
50 #define CPPMDADD                {               \
ragge
1.1
51         "-D__i386__",                           \
52         "-D__i386",                             \
53         "-Di386",                               \
54         NULL,                                   \
gmcgarry
1.6
55 }
ragge
1.1
56 #elif defined(mach_sparc)
57 #error pcc does not support sparc yet
gmcgarry
1.6
58 #else
ragge
1.5
59 #error this architecture is not supported by MirOS BSD
gmcgarry
1.6
60 #endif
FishEye: Open Source License registered to PCC.
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-12-28 04:05 +0100