pkgsrc-WIP-changes archive

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

archimedes: Work around compatibility issue with clang



Module Name:	pkgsrc-wip
Committed By:	Georg Schwarz <schwarz%NetBSD.org@localhost>
Pushed By:	schwarz
Date:		Sat Apr 18 21:02:28 2020 +0200
Changeset:	df1ccf57503d2d62b7fd9906d9437ae7714cabf2

Modified Files:
	archimedes/Makefile

Log Message:
archimedes: Work around compatibility issue with clang

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

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

diffstat:
 archimedes/Makefile | 9 +++++++++
 1 file changed, 9 insertions(+)

diffs:
diff --git a/archimedes/Makefile b/archimedes/Makefile
index d41baa5860..657fd4a79f 100644
--- a/archimedes/Makefile
+++ b/archimedes/Makefile
@@ -14,4 +14,13 @@ GNU_CONFIGURE=	yes
 USE_LANGUAGES=	c c++
 USE_FEATURES+=	getopt_long
 
+.include "../../mk/compiler.mk"
+.if !empty(PKGSRC_COMPILER:Mclang)
+SUBST_CLASSES+=	inline
+SUBST_STAGE.inline=        pre-configure
+SUBST_FILES.inline=        src/particlecreation.h
+SUBST_MESSAGE.inline=      Removing inline due to compiler compatibility issues
+SUBST_SED.inline=         -e s,inline,,
+.endif
+
 .include "../../mk/bsd.pkg.mk"


Home | Main Index | Thread Index | Old Index