diff options
author | Ed Maste <emaste@FreeBSD.org> | 2015-05-15 14:22:33 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2015-05-15 14:22:33 +0000 |
commit | 810d5b3420f711d836d0e6dd3187433011448609 (patch) | |
tree | 8b794ce14e74021bdaf52df9d509010b24ff21a1 /gnu/lib | |
parent | a8c5ea04b4a6b3725d2a278456e3d7e49c46546b (diff) | |
download | src-810d5b3420f711d836d0e6dd3187433011448609.tar.gz src-810d5b3420f711d836d0e6dd3187433011448609.zip |
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
Notes
Notes:
svn path=/head/; revision=282973
Diffstat (limited to 'gnu/lib')
-rw-r--r-- | gnu/lib/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/lib/Makefile b/gnu/lib/Makefile index 373c2805fd66..6d28e132846a 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 |