]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix the mips64 world build after r364284.
authordim <dim@FreeBSD.org>
Wed, 19 Aug 2020 17:05:30 +0000 (17:05 +0000)
committerdim <dim@FreeBSD.org>
Wed, 19 Aug 2020 17:05:30 +0000 (17:05 +0000)
commit25bec1f306abda507113aaf2f79821c0afa1e8d9
tree7d7f5b378d19f7a59546bb3472b048c9a25ddb0a
parent2de558f01eb520839faaa70be6af16410e5dbcca
Fix the mips64 world build after r364284.

Linking the full version of clang 11 results in errors similar to:

lld: error: /usr/src/contrib/llvm-project/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp:736:(.text._ZN5clang4ento22CreateAnalysisConsumerERNS_16CompilerInstanceE+0xE0): relocation R_MIPS_CALL16 out of range: 48920 is not in [-32768, 32767]; references operator new(unsigned long)

Add -mxgot to the compilation flags for llvm libraries to work around
this error. This may be too big of a hammer, but it can always be
refined later.

MFC after: 6 weeks
lib/clang/llvm.build.mk