Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Feb 2014 21:36:41 -0800 (PST)
From:      Don Lewis <truckman@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/186998: [patch] math/fftw3 port fails during configure on i386 with clang
Message-ID:  <201402260536.s1Q5af8w080471@gw.catspoiler.org>
In-Reply-To: <201402240610.s1O6A0e6011876@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is probably a better patch:

Index: Makefile
===================================================================
--- Makefile	(revision 345674)
+++ Makefile	(working copy)
@@ -19,7 +19,7 @@
 FFTW3_SUFX=
 
 GNU_CONFIGURE=	yes
-USES=		pathfix perl5 pkgconfig
+USES=		pathfix perl5 pkgconfig compiler:features
 USE_PERL5=	build
 USE_LDCONFIG=	yes
 
@@ -62,7 +62,9 @@
 CFLAGS+=	-fomit-frame-pointer
 .  endif
 .  if ${ARCH} == "i386"
+.    if ${COMPILER_TYPE} == "gcc"
 CFLAGS+=	-malign-double
+.    endif
 .  endif
 WITHOUT_NO_STRICT_ALIASING=	yes
 .endif # end OPTIMIZED_CFLAGS




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402260536.s1Q5af8w080471>