| 1 | /* $Id: ccconfig.h,v 1.10 2014/12/24 08:43:28 plunky Exp $ */ |
| 2 | /*- |
| 3 | * Copyright (c) 2007, 2008 |
| 4 | * Thorsten Glaser <[email protected]> |
| 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 | |
| 22 | /** |
| 23 | * Configuration for pcc on a MirOS BSD (i386 or sparc) target |
| 24 | */ |
| 25 | |
| 26 | /* === mi part === */ |
| 27 | |
| 28 | /* cpp MI defines */ |
| 29 | #define CPPADD { \ |
| 30 | "-D__MirBSD__", \ |
| 31 | "-D__OpenBSD__", \ |
| 32 | "-D__unix__", \ |
| 33 | "-D__ELF__", \ |
| 34 | NULL \ |
| 35 | } |
| 36 | |
| 37 | /* for dynamically linked binaries */ |
| 38 | #define DYNLINKLIB "/usr/libexec/ld.so" |
| 39 | |
| 40 | #define CRTEND_T "crtend.o" |
| 41 | #define DEFLIBS { "-lc", NULL } |
| 42 | |
| 43 | /* === md part === */ |
| 44 | |
| 45 | #if defined(mach_i386) |
| 46 | #define CPPMDADD { \ |
| 47 | "-D__i386__", \ |
| 48 | "-D__i386", \ |
| 49 | "-Di386", \ |
| 50 | NULL, \ |
| 51 | } |
| 52 | #elif defined(mach_sparc) |
| 53 | #error pcc does not support sparc yet |
| 54 | #else |
| 55 | #error this architecture is not supported by MirOS BSD |
| 56 | #endif |