summaryrefslogtreecommitdiffstats
path: root/tools/build/Makefile
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2011-11-15 20:15:58 +0000
committerdim <dim@FreeBSD.org>2011-11-15 20:15:58 +0000
commite4caa3a047dedda183a89b1d822fddedbafda85d (patch)
tree893da1e61deaa9de271b3d52fe03008ccdfc69a4 /tools/build/Makefile
parent4b6458192ff06c2470fb447cad0f59bf228acf93 (diff)
downloadFreeBSD-src-e4caa3a047dedda183a89b1d822fddedbafda85d.zip
FreeBSD-src-e4caa3a047dedda183a89b1d822fddedbafda85d.tar.gz
LLVM uses atomic operations, which are not supported on i386 and GCC
emits calls for them, rather than expanding them inline. Older FreeBSD versions compile for i386 by default and as such we end up with unresolved symbols when we build LLVM's TableGen utility as a build tool on them. Add the functions that GCC emits here, but don't bother to make them atomic. Such is not needed. Submitted by: marcel MFC after: 1 week
Diffstat (limited to 'tools/build/Makefile')
-rw-r--r--tools/build/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/build/Makefile b/tools/build/Makefile
index 8e26c29..4eb7548 100644
--- a/tools/build/Makefile
+++ b/tools/build/Makefile
@@ -7,6 +7,10 @@ SRCS=
INCSGROUPS= INCS
INCS=
+.if ${MACHINE_ARCH} == i386
+SRCS+= atomic.c
+.endif
+
BOOTSTRAPPING?= 0
.if empty(SRCS)
OpenPOWER on IntegriCloud