openbsd-ports/security/ghidra
lteo f8789dabac Ghidra's build system prefers g++ over clang, which is not what we want on a
clang-based platform like amd64.  This commit makes Ghidra build with clang by:

* Adding a clang toolChains block in nativeBuildProperties.gradle
* Adding COMPILER="base-clang ports-clang"
* Updating WANTLIB by replacing libstdc++ with ${COMPILER_LIBCXX}

In addition, honor CXX by setting tools.cppCompiler.executable and
tools.linker.executable in nativeBuildProperties.gradle to ${CXX}.  Also print
those variables so that we can confirm that they are set properly.

Lastly, add --stacktrace to the gradle command to facilitate future debugging.

Thanks to daniel@ for bringing this to my attention, naddy@ for his detailed
report of the g++ and CXX issues, and sthen@ for suggesting a possible fix.

ok naddy@ sthen@
2019-09-12 02:10:07 +00:00
..
files Build and pack native components so that Ghidra can decompile programs on 2019-07-23 02:09:20 +00:00
patches Ghidra's build system prefers g++ over clang, which is not what we want on a 2019-09-12 02:10:07 +00:00
pkg Build and pack native components so that Ghidra can decompile programs on 2019-07-23 02:09:20 +00:00
distinfo Build and pack native components so that Ghidra can decompile programs on 2019-07-23 02:09:20 +00:00
Makefile Ghidra's build system prefers g++ over clang, which is not what we want on a 2019-09-12 02:10:07 +00:00