Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Mar 2015 00:28:05 +0000 (UTC)
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r382281 - head/math/miracl
Message-ID:  <201503260028.t2Q0S5TD003346@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bdrewery
Date: Thu Mar 26 00:28:04 2015
New Revision: 382281
URL: https://svnweb.freebsd.org/changeset/ports/382281
QAT: https://qat.redports.org/buildarchive/r382281/

Log:
  This fails with Clang on 8.4-amd64. Just stick with GCC for now since it is
  working everywhere.

Modified:
  head/math/miracl/Makefile

Modified: head/math/miracl/Makefile
==============================================================================
--- head/math/miracl/Makefile	Thu Mar 26 00:00:44 2015	(r382280)
+++ head/math/miracl/Makefile	Thu Mar 26 00:28:04 2015	(r382281)
@@ -24,7 +24,8 @@ LICENSE_PERMS_COMMERCIAL=	dist-mirror di
 
 ONLY_FOR_ARCHS=	i386 amd64
 
-USES=		zip compiler:c++0x
+USES=		zip
+USE_GCC=	yes
 USE_LDCONFIG=	yes
 
 EXTRACT_BEFORE_ARGS=	-j -L -q
@@ -41,22 +42,18 @@ BUILDCMD=	linux
 BUILDCMD=	linux64
 .endif
 
+.if ${ARCH} == "amd64"
+CFLAGS+=	-fPIC
+.endif
+
 post-patch:
 # C{C,XX} safeness
 # CFLAGS safeness
-.if ${ARCH} == "i386"
 	@${REINPLACE_CMD} -E \
 		-e 's|gcc|${CC}|' \
 		-e 's|g\+\+|${CXX}|' \
 		-e 's|-O2|${CFLAGS}|' \
 		${WRKSRC}/${BUILDCMD}
-.else
-	@${REINPLACE_CMD} -E \
-		-e 's|gcc|${CC}|' \
-		-e 's|g\+\+|${CXX}|' \
-		-e 's|-O2|${CFLAGS} -fPIC|' \
-		${WRKSRC}/${BUILDCMD}
-.endif
 # Don't error when files not found
 # Fix mrmuldv.cc not existing due to s/gcc/CC/ replacement above.
 	@${REINPLACE_CMD} -E \



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