[gn] Fix libunwind build on mac after 203b6f31bb7
authorNico Weber <thakis@chromium.org>
Sat, 18 Mar 2023 21:19:41 +0000 (22:19 +0100)
committerNico Weber <thakis@chromium.org>
Sat, 18 Mar 2023 21:20:07 +0000 (22:20 +0100)
See #61501 and https://reviews.llvm.org/D143637#4204277 for details.

llvm/utils/gn/secondary/libunwind/src/BUILD.gn

index 87bde59..f4aa67a 100644 (file)
@@ -91,6 +91,7 @@ if (libunwind_enable_shared && current_os != "android") {
       ]
     }
     if (current_os == "mac") {
+      cflags += [ "-fno-stack-protector" ]
       ldflags += [
         "-Wl,-compatibility_version,1",
         "-Wl,-install_name,/usr/lib/libunwind.1.dylib",