44 lines
1.6 KiB
Plaintext
44 lines
1.6 KiB
Plaintext
$NetBSD$
|
|
|
|
--- build/config/BUILD.gn.orig 2020-06-25 09:31:19.000000000 +0000
|
|
+++ build/config/BUILD.gn
|
|
@@ -133,7 +133,7 @@ config("debug") {
|
|
# builds, and we have to tell it to turn it off.
|
|
defines += [ "_HAS_ITERATOR_DEBUGGING=0" ]
|
|
}
|
|
- } else if (is_linux && current_cpu == "x64" && enable_iterator_debugging) {
|
|
+ } else if ((is_linux || is_bsd) && current_cpu == "x64" && enable_iterator_debugging) {
|
|
# Enable libstdc++ debugging facilities to help catch problems early, see
|
|
# http://crbug.com/65151 .
|
|
# TODO(phajdan.jr): Should we enable this for all of POSIX?
|
|
@@ -235,6 +235,11 @@ config("default_libs") {
|
|
"pthread",
|
|
"rt",
|
|
]
|
|
+ } else if (is_bsd) {
|
|
+ libs = [
|
|
+ "pthread",
|
|
+ "rt",
|
|
+ ]
|
|
}
|
|
}
|
|
|
|
@@ -316,7 +321,7 @@ config("executable_config") {
|
|
"//build/config/ios:ios_dynamic_flags",
|
|
"//build/config/ios:ios_executable_flags",
|
|
]
|
|
- } else if (is_linux || is_android || current_os == "aix") {
|
|
+ } else if (is_linux || is_android || current_os == "aix" || is_bsd) {
|
|
configs += [ "//build/config/gcc:executable_config" ]
|
|
if (is_chromecast) {
|
|
configs += [ "//build/config/chromecast:executable_config" ]
|
|
@@ -350,7 +355,7 @@ config("shared_library_config") {
|
|
configs += [ "//build/config/ios:ios_dynamic_flags" ]
|
|
} else if (is_chromecast) {
|
|
configs += [ "//build/config/chromecast:shared_library_config" ]
|
|
- } else if (is_linux || current_os == "aix") {
|
|
+ } else if (is_linux || current_os == "aix" || is_bsd) {
|
|
configs += [ "//build/config/gcc:shared_library_config" ]
|
|
}
|
|
|