mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2026-05-28 18:06:32 +03:00
mipsel: build: Fix -z execstack link error
This commit is contained in:
@@ -1103,10 +1103,18 @@ config("linker") {
|
||||
}
|
||||
|
||||
if (is_linux || is_chromeos || is_android || is_fuchsia) {
|
||||
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" ]
|
||||
|
||||
Reference in New Issue
Block a user