aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
blob: a727662cfe1cae7480e4055ef748eba709409cee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef DYNAMICLINKER
#define DYNAMICLINKER "/lib64/ld-linux-x86-64.so.2"
#endif

static char *startfiles[] = {
	"-l", ":crt1.o",
	"-l", ":crti.o",
};
static char *endfiles[] = {
	"-l", ":crtn.o",
	"-l", "c",
};

static char *preprocesscmd[] = {
		"cpp", "-P",

		/* specify the GNU C extensions we support */
		"-U", "__GNUC__", "-D", "__GNUC__=3",
		"-U", "__GNUC_MINOR__", "-D", "__GNUC_MINOR__=3",

		/* prevent glibc from using statement expressions for assert */
		"-D", "__STRICT_ANSI__",

		/* required for glibc headers */
		"-D", "__restrict=restrict",
		"-D", "__extension__=",
		"-D", "__attribute__(x)=",
		"-D", "__asm__(x)=",

		/* required for kernel headers */
		"-D", "__signed__=signed",

		/* required for binutils */
		"-D", "__alignof__=_Alignof",
};
static char *compilecmd[] = {"cc-qbe"};
static char *codegencmd[] = {"qbe"};
static char *assemblecmd[] = {"as"};
static char *linkcmd[] = {"ld", "--dynamic-linker=" DYNAMICLINKER};