ports/devel/electron4/files/patch-build_config_BUILD.gn
Luca Pizzamiglio 2f40d531c4 devel/electron4: Add electron 4.2.2
Finally, after a long wait, an electron port for FreeBSD lands in the
portstree.

A huge thanks to everyone contributed to this huge effort and to the
maintainer that is willing to take the burden of the maintainership!
2019-05-28 09:12:02 +00:00

30 lines
1.1 KiB
Text

--- build/config/BUILD.gn.orig 2019-03-15 06:36:56 UTC
+++ build/config/BUILD.gn
@@ -167,7 +167,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?
@@ -269,9 +269,7 @@ config("default_libs") {
]
} else if (is_linux) {
libs = [
- "dl",
"pthread",
- "rt",
]
}
}
@@ -327,7 +325,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_bsd || is_android || current_os == "aix") {
configs += [ "//build/config/gcc:executable_ldconfig" ]
if (is_android) {
configs += [ "//build/config/android:executable_config" ]