2020-07-27 03:07:44 +00:00
|
|
|
$NetBSD$
|
|
|
|
|
2020-08-15 11:43:22 +00:00
|
|
|
https://skia-review.googlesource.com/c/skia/+/310856
|
|
|
|
|
2020-07-27 03:07:44 +00:00
|
|
|
--- 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",
|