summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2013-11-05 07:37:35 +0000
committerdim <dim@FreeBSD.org>2013-11-05 07:37:35 +0000
commit5af257114fe836888b389ea7897016dee654ea1e (patch)
treeb9060f5116d35bb332e3bc0aee095b3c8107e5c7 /gnu
parent592c1d7a8e9590ce76786fe68d0cac491b6b23e6 (diff)
downloadFreeBSD-src-5af257114fe836888b389ea7897016dee654ea1e.zip
FreeBSD-src-5af257114fe836888b389ea7897016dee654ea1e.tar.gz
Fix libgcc build with gcc after r257645, by using -Wno-static-in-inline
for clang only.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/lib/libgcc/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/gnu/lib/libgcc/Makefile b/gnu/lib/libgcc/Makefile
index 5488799..2d62fc3 100644
--- a/gnu/lib/libgcc/Makefile
+++ b/gnu/lib/libgcc/Makefile
@@ -36,7 +36,9 @@ CFLAGS+= -DIN_GCC -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED \
# function with external linkage [-Wstatic-in-inline]
# gcc_assert (index < (int) sizeof(dwarf_reg_size_table));
# ^
+.if ${COMPILER_TYPE} == "clang"
CFLAGS+= -Wno-static-in-inline
+.endif
LDFLAGS+= -nodefaultlibs
LDADD+= -lc
OpenPOWER on IntegriCloud