archimedes: Work around compatibility issue with clang

This commit is contained in:
Georg Schwarz 2020-04-18 21:02:28 +02:00
parent f57cb63fbb
commit df1ccf5750
1 changed files with 9 additions and 0 deletions

View File

@ -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"