1 /* $Id: ccconfig.h,v 1.4 2008/07/18 06:53:48 gmcgarry Exp $ */
3 * Copyright (c) 2007, 2008
4 * Thorsten Glaser <tg@mirbsd.de>
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.
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.
23 * Configuration for pcc on a MidnightBSD (amd64, i386 or sparc64) target
29 #define LIBDIR "/usr/lib/"
34 "-D__MidnightBSD__", \
44 /* for dynamically linked binaries */
47 "/libexec/ld-elf.so.1", \
50 #define STARTFILES { \
52 LIBDIR "crtbegin.o", \
61 /* for shared libraries */
62 #define STARTFILES_S { \
64 LIBDIR "crtbeginS.o", \
67 #define ENDFILES_S { \
73 /* for statically linked binaries */
74 #define STARTFILES_T { \
76 LIBDIR "crtbeginT.o", \
79 #define ENDFILES_T { \
90 #define LIBCLIBS_PROFILE { \
97 /* C run-time startup */
98 #define CRT0FILE LIBDIR "crt1.o"
99 #define CRT0FILE_PROFILE LIBDIR "gcrt1.o"
100 #define STARTLABEL "_start"
105 /* === md part === */
107 #if defined(mach_i386)
114 #elif defined(mach_sparc64)
127 #elif defined(mach_amd64)
128 #error pcc does not support amd64 yet
130 #error this architecture is not supported by MidnightBSD