From df1ccf57503d2d62b7fd9906d9437ae7714cabf2 Mon Sep 17 00:00:00 2001 From: Georg Schwarz Date: Sat, 18 Apr 2020 21:02:28 +0200 Subject: [PATCH] archimedes: Work around compatibility issue with clang --- archimedes/Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) 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"