mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 08:24:32 -08:00
Adding -lc++ -lc++abi -lunwind to user programs. Also, to support this, start building using the custom toolchain and its new x86_64-jsix-elf target triplet.
40 lines
745 B
YAML
40 lines
745 B
YAML
---
|
|
extends: base
|
|
|
|
variables:
|
|
asflags: [ "-I${source_root}/src/kernel/" ]
|
|
|
|
ccflags: [
|
|
"--target=x86_64-jsix-elf",
|
|
"-mno-sse",
|
|
"-fno-omit-frame-pointer",
|
|
"-fno-stack-protector",
|
|
|
|
"-g",
|
|
|
|
"-D__ELF__",
|
|
"-D__jsix__",
|
|
"-U__linux",
|
|
"-U__linux__",
|
|
|
|
"-isystem${source_root}/sysroot/include",
|
|
"-isystem${build_root}/include/libc",
|
|
"--sysroot='${source_root}/sysroot'" ]
|
|
|
|
|
|
cxxflags: [
|
|
"-fno-exceptions",
|
|
"-fno-rtti",
|
|
"-isystem${source_root}/sysroot/include/c++/v1" ]
|
|
|
|
ldflags: [
|
|
"-g",
|
|
"-Bstatic",
|
|
"--sysroot='${source_root}/sysroot'",
|
|
"-L", "${source_root}/sysroot/lib",
|
|
"-z", "separate-code",
|
|
"-lc++", "-lc++abi", "-lunwind",
|
|
"--no-dependent-libraries",
|
|
]
|
|
|