aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
blob: c9daa1a74ef825213fb68193c243fc5b1670e000 (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
#define DYNAMICLINKER "/lib64/ld-linux-x86-64.so.2"

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

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

		/* prevent libc from using GNU C extensions */
		"-U", "__GNUC__",

		/* required for glibc headers */
		"-D", "__restrict=restrict",
		"-D", "__extension__=",
		"-D", "__attribute__(x)=",
		"-D", "__asm__(x)=",
};
static char *compilecmd[] = {"cc-qbe"};
static char *codegencmd[] = {"qbe"};
static char *assemblecmd[] = {"as"};
static char *linkcmd[] = {"ld", "--dynamic-linker=" DYNAMICLINKER};