[build] Update user build flags

Make symbols hidden by default, explicitly set architecture.
This commit is contained in:
Justin C. Miller
2023-02-20 11:20:46 -08:00
parent 508058c3d7
commit 6b43ddc8d7

View File

@@ -9,7 +9,12 @@ variables:
"-fno-omit-frame-pointer", "-fno-omit-frame-pointer",
"-fno-stack-protector", "-fno-stack-protector",
"-g", "-g3",
"-ggdb",
"-fno-plt",
"-fvisibility=hidden",
"-fvisibility-inlines-hidden",
"-D__ELF__", "-D__ELF__",
"-D__jsix__", "-D__jsix__",
@@ -28,8 +33,10 @@ variables:
ldflags: [ ldflags: [
"-g", "-g",
"-m", "elf_x86_64",
"-Bstatic", "-Bstatic",
"--sysroot='${source_root}/sysroot'", "--sysroot='${source_root}/sysroot'",
"--no-eh-frame-hdr",
"-L", "${source_root}/sysroot/lib", "-L", "${source_root}/sysroot/lib",
"-z", "separate-code", "-z", "separate-code",
"-lc++", "-lc++abi", "-lunwind", "-lc++", "-lc++abi", "-lunwind",