ec56dcba7d81548da4826917c69a93f84bf0a508
[lunaix-os.git] / lunaix-os / usr / LBuild
1 sources([
2     "testp",
3     "ls",
4     "signal_demo",
5     "cat",
6     "stat",
7     "test_pthread"
8 ])
9
10 compile_opts([
11     "-ffreestanding",
12     "-fno-pie"
13 ])
14
15 linking_opts([
16     "-nostdlib", 
17     "-nolibc", 
18     "-z noexecstack", 
19     "-no-pie", 
20 ])
21
22 linking_opts([
23     "-Wl,--build-id=none"
24 ])
25
26 if config("arch") == "x86_64":
27     compile_opts([
28         "-m64", 
29         "-fno-unwind-tables", 
30         "-fno-asynchronous-unwind-tables",
31         "-mcmodel=large"
32     ])
33     linking_opts([
34         "-m64",
35     ])
36 else:
37     compile_opts("-m32")
38     linking_opts("-m32")
39
40 compile_opts("-mno-sse")