diff --git a/devel/libpru/Makefile b/devel/libpru/Makefile index 836f909029fc..2086d0b8d832 100644 --- a/devel/libpru/Makefile +++ b/devel/libpru/Makefile @@ -11,15 +11,16 @@ COMMENT= Library to interface with PRUs LICENSE= BSD2CLAUSE IGNORE_DragonFly= only supported on FreeBSD -USES= cmake +USES= cmake compiler WRKSRC= ${WRKDIR}/rpaulo-libpru-5a74157b82b8 .include post-patch: -.if ${ARCH:Mmips*} || ${ARCH:Mpowerpc*} || ${ARCH} == sparc64 ${REINPLACE_CMD} -e 's/ -Weverything//' ${WRKSRC}/CMakeLists.txt +.if ${CHOSEN_COMPILER_TYPE} == gcc + ${REINPLACE_CMD} -e 's/ -Werror//' ${WRKSRC}/CMakeLists.txt .endif .include