When building libomp for i386, clang 9.0.0 produces a new warning about

large atomic operations "possibly incurring significant performance
penalties", but there is not much we can do about it, so squelch that
warning.
This commit is contained in:
dim 2019-09-08 10:00:21 +00:00
parent 188dc0fa11
commit 9bd3ddf47d

View File

@ -1,5 +1,7 @@
# $FreeBSD$
.include <bsd.compiler.mk>
SHLIB_NAME= libomp.so
OMPSRC= ${SRCTOP}/contrib/openmp/runtime/src
@ -56,6 +58,13 @@ CXXFLAGS+= -fno-exceptions
CXXFLAGS+= -fno-rtti
CXXSTD= c++11
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 90000
# When targeting i386, clang 9.0.0 produces a new warning about large atomic
# operations "possibly incurring significant performance penalties", but there
# is not much we can do about it.
CWARNFLAGS+= -Wno-atomic-alignment
.endif
LDFLAGS+= -Wl,--warn-shared-textrel
LDFLAGS+= -Wl,--gc-sections
LDFLAGS+= -Wl,-z,noexecstack