summaryrefslogtreecommitdiff
path: root/external/libtommath
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-07-21 08:10:34 +0200
committerStephan Bergmann <sbergman@redhat.com>2020-07-21 09:20:01 +0200
commitdae5dc8d8992cbc5fa2ef3b1d5167847005491b4 (patch)
tree6d9e742f6c1ac0421f7a91eedcd51eb27d299821 /external/libtommath
parent4401f13a9e2d29503529c219f5f447c68b327007 (diff)
external/libtommath: Avoid -Wsystem-headers warnings/errors
NO_ADDTL_WARNINGS controls whether workdir/UnpackedTarball/libtommath/makefile.include adds -Wsystem-headers (among others) to CFLAGS, which has generally been harmless as we build that external code with warnings not as errors. But Clang 12 trunk <https://github.com/llvm/ llvm-project/commit/f47b8851318d5ec2fa1e7867f3fdb86101cdc1da> "[clang] Enable errors for undefined TARGET_OS_ macros in Darwin driver" now unconditionally added some -Werror=... on Darwin/macOS that would cause the build to fail with > In file included from bncore.c:1: > In file included from ./tommath_private.h:18: > In file included from ./tommath.h:25: > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:220:5: error: 'TARGET_OS_EMBEDDED' is not defined, evaluates to 0 [-Werror,-Wundef-prefix=TARGET_OS_] > #if TARGET_OS_EMBEDDED > ^ at least with Xcode 11.6. Change-Id: I5465b9070ff60da85b9278b0e46dcf6c801fbda6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99116 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'external/libtommath')
-rw-r--r--external/libtommath/ExternalProject_libtommath.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/external/libtommath/ExternalProject_libtommath.mk b/external/libtommath/ExternalProject_libtommath.mk
index 9169619943ce..2b4fb9fbdc76 100644
--- a/external/libtommath/ExternalProject_libtommath.mk
+++ b/external/libtommath/ExternalProject_libtommath.mk
@@ -30,7 +30,7 @@ $(call gb_ExternalProject_get_state_target,libtommath,build) :
&& export CFLAGS=" \
-fPIC \
" \
- && $(MAKE) $(if $(verbose),V=1) \
+ && $(MAKE) $(if $(verbose),V=1) NO_ADDTL_WARNINGS=1 \
)
$(call gb_Trace_EndRange,libtommath,EXTERNAL)
endif