pkgsrc-WIP-changes archive

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

libatomic: skip on non-GCC compiler.



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

Modified Files:
	libatomic/Makefile

Log Message:
libatomic: skip on non-GCC compiler.

This ends up using very niche inline assembly like
x86/fenv.c:60

asm volatile ("%vdivss\t{%0, %d0|%d0, %0}" : "+x" (f));

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

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

diffstat:
 libatomic/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diffs:
diff --git a/libatomic/Makefile b/libatomic/Makefile
index c04aa37681..86176795c3 100644
--- a/libatomic/Makefile
+++ b/libatomic/Makefile
@@ -14,6 +14,10 @@ HOMEPAGE=	https://gcc.gnu.org/
 COMMENT=	Atomic fallback implementation
 LICENSE=	gnu-gpl-v3
 
+.if empty(PKGSRC_COMPILER:Mgcc*)
+PKG_SKIP_REASON+=	"Uses esoteric GCC-specific features"
+.endif
+
 USE_LANGUAGES=		c99 c++
 USE_TOOLS+=		gmake
 


Home | Main Index | Thread Index | Old Index