ports/security/ghidra/patches/patch-GPL_nativeBuildProperties_gradle

31 lines
797 B
Text

Adapted from https://github.com/NationalSecurityAgency/ghidra/pull/490
Force use of Clang and honor CXX.
Index: GPL/nativeBuildProperties.gradle
--- GPL/nativeBuildProperties.gradle.orig
+++ GPL/nativeBuildProperties.gradle
@@ -39,7 +39,23 @@ model {
architecture 'x86_64'
operatingSystem 'osx'
}
+ openbsd64 {
+ architecture 'x86_64'
+ operatingSystem 'openbsd'
+ }
}
+
+ toolChains {
+ // Force use of Clang
+ clang(Clang) {
+ eachPlatform { tools ->
+ tools.cppCompiler.executable = "${CXX}"
+ tools.linker.executable = "${CXX}"
+ println "C++ compiler is [${tools.cppCompiler.executable}]"
+ println "Linker is [${tools.linker.executable}]"
+ }
+ }
+ }
}
/*******************************************************************************************