pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

libatomic: doesn't built with non-GCC, so don't pull it in for now



Module Name:	pkgsrc-wip
Committed By:	Maya Rashish <maya%NetBSD.org@localhost>
Pushed By:	coypu
Date:		Fri May 22 19:18:20 2020 +0300
Changeset:	c9c8416308eb131230fdc2b017c30711be978358

Modified Files:
	libatomic/builtin.mk

Log Message:
libatomic: doesn't built with non-GCC, so don't pull it in for now

(Might not be so hard to do, let's see...)

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=c9c8416308eb131230fdc2b017c30711be978358

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 libatomic/builtin.mk | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diffs:
diff --git a/libatomic/builtin.mk b/libatomic/builtin.mk
index 666de8ef4e..7adb849f27 100644
--- a/libatomic/builtin.mk
+++ b/libatomic/builtin.mk
@@ -6,7 +6,10 @@ BUILTIN_FIND_LIBS:=	atomic
 
 .include "../../mk/buildlink3/bsd.builtin.mk"
 
-.if !empty(BUILTIN_LIB_FOUND.atomic:M[yY][eE][sS])
+# Use builtin libatomic if the compiler isn't GCC
+# This package is broken with non-GCC compilers.
+.if !empty(BUILTIN_LIB_FOUND.atomic:M[yY][eE][sS]) && \
+    empty(PKGSRC_COMPILER:Mgcc*)
 BUILTIN_LIBNAME.libatomic=	atomic
 USE_BUILTIN.libatomic=		yes
 .endif


Home | Main Index | Thread Index | Old Index