summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2015-05-15 14:22:33 +0000
committeremaste <emaste@FreeBSD.org>2015-05-15 14:22:33 +0000
commitdc3cd85736baf0aa316a834110dabbeb9add5dbb (patch)
tree8b794ce14e74021bdaf52df9d509010b24ff21a1 /gnu
parentdeecdc3d61efe21dd72ab03d04cea4a956bab557 (diff)
downloadFreeBSD-src-dc3cd85736baf0aa316a834110dabbeb9add5dbb.zip
FreeBSD-src-dc3cd85736baf0aa316a834110dabbeb9add5dbb.tar.gz
Build libgomp only if we're also building base system GCC
Clang's OpenMP support will emit Intel OpenMP API library calls, and will therefore require libiomp (or whatever name is settled on). An up-to-date version of libgomp is included in ports or pkg GCC. Thus, there is no reason to build base libgomp without base system GCC. PR: 199979 (exp-run) Reviewed by: pfg Relnotes: Yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D2459
Diffstat (limited to 'gnu')
-rw-r--r--gnu/lib/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/lib/Makefile b/gnu/lib/Makefile
index 373c280..6d28e13 100644
--- a/gnu/lib/Makefile
+++ b/gnu/lib/Makefile
@@ -2,7 +2,11 @@
.include <src.opts.mk>
-SUBDIR= csu libgcc libgcov libdialog libgomp libregex libreadline
+SUBDIR= csu libgcc libgcov libdialog libregex libreadline
+
+.if ${MK_GCC} != "no"
+SUBDIR+= libgomp
+.endif
.if ${MK_SSP} != "no"
SUBDIR+= libssp
OpenPOWER on IntegriCloud