mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2025-04-19 09:01:01 +00:00
mipsel: build: Fix -z execstack link error
This commit is contained in:
parent
59183304fe
commit
3ccaa86cb0
1 changed files with 12 additions and 4 deletions
|
@ -509,10 +509,18 @@ config("compiler") {
|
|||
cflags += [ "-pipe" ]
|
||||
}
|
||||
|
||||
ldflags += [
|
||||
"-Wl,-z,noexecstack",
|
||||
"-Wl,-z,relro",
|
||||
]
|
||||
if (current_cpu != "mipsel" && current_cpu != "mips64el") {
|
||||
ldflags += [
|
||||
"-Wl,-z,noexecstack",
|
||||
"-Wl,-z,relro",
|
||||
]
|
||||
} else {
|
||||
ldflags += [
|
||||
# https://github.com/llvm/llvm-project/pull/124068
|
||||
"-Wl,-z,execstack",
|
||||
"-Wl,-z,relro",
|
||||
]
|
||||
}
|
||||
|
||||
if (!is_component_build) {
|
||||
ldflags += [ "-Wl,-z,now" ]
|
||||
|
|
Loading…
Add table
Reference in a new issue