From 97ebffff58afb154972fb2e204a39acc09c52cfd Mon Sep 17 00:00:00 2001 From: Johannes M Dieterich Date: Fri, 28 Dec 2018 21:32:12 +0000 Subject: [PATCH] math/clrng: fix with GCC based architectures PR: 234440 Submitted by: Piotr Kubaj --- math/clrng/Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/math/clrng/Makefile b/math/clrng/Makefile index 4295cfe3ac54..20ffbfe23bab 100644 --- a/math/clrng/Makefile +++ b/math/clrng/Makefile @@ -4,7 +4,7 @@ PORTNAME= clrng DISTVERSIONPREFIX= v DISTVERSION= 1.0.0-beta -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= math MAINTAINER= jmd@FreeBSD.org @@ -34,4 +34,10 @@ CMAKE_ARGS+= -DBUILD_CLIENT=OFF \ CMAKE_SOURCE_PATH= ${WRKSRC}/src -.include +.include + +.if ${CHOSEN_COMPILER_TYPE} == gcc +CFLAGS+= -Wno-expansion-to-defined +.endif + +.include