pkgsrc-wip/chromium/patches/patch-third__party_skia_gn_...

34 lines
809 B
Plaintext

$NetBSD$
https://skia-review.googlesource.com/c/skia/+/310856
--- third_party/skia/gn/BUILD.gn.orig 2020-07-15 19:01:39.000000000 +0000
+++ third_party/skia/gn/BUILD.gn
@@ -211,7 +211,7 @@ config("default") {
libs += [ "objc" ]
}
- if (is_linux) {
+ if (is_linux || is_bsd) {
libs += [ "pthread" ]
}
@@ -287,7 +287,7 @@ config("default") {
ldflags += [ "-fsanitize=$sanitizers" ]
}
- if (is_linux) {
+ if (is_linux || is_bsd) {
cflags_cc += [ "-stdlib=libc++" ]
ldflags += [ "-stdlib=libc++" ]
}
@@ -572,7 +572,7 @@ config("executable") {
]
} else if (is_mac) {
ldflags = [ "-Wl,-rpath,@loader_path/." ]
- } else if (is_linux) {
+ } else if (is_linux || is_bsd) {
ldflags = [
"-rdynamic",
"-Wl,-rpath,\$ORIGIN",