Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Mar 2019 18:41:09 +0000 (UTC)
From:      Mark Linimon <linimon@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r494830 - in head/lang/io-devel: . files
Message-ID:  <201903061841.x26If9ZO014008@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: linimon
Date: Wed Mar  6 18:41:08 2019
New Revision: 494830
URL: https://svnweb.freebsd.org/changeset/ports/494830

Log:
  Disable sse on non-x86 architectures to fix build.
  
  Approved by:	portmgr (tier-2 blanket)

Added:
  head/lang/io-devel/files/
  head/lang/io-devel/files/extra-patch-CMakeLists.txt   (contents, props changed)
Modified:
  head/lang/io-devel/Makefile

Modified: head/lang/io-devel/Makefile
==============================================================================
--- head/lang/io-devel/Makefile	Wed Mar  6 18:38:37 2019	(r494829)
+++ head/lang/io-devel/Makefile	Wed Mar  6 18:41:08 2019	(r494830)
@@ -29,4 +29,11 @@ MAKE_JOBS_UNSAFE=	yes
 
 CMAKE_ARGS=	-DWITHOUT_EERIE:BOOL=ON
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+# disable sse on non-x86 archs
+.if ${ARCH} != amd64 && ${ARCH} != i386
+EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-CMakeLists.txt
+.endif
+
+.include <bsd.port.post.mk>

Added: head/lang/io-devel/files/extra-patch-CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/io-devel/files/extra-patch-CMakeLists.txt	Wed Mar  6 18:41:08 2019	(r494830)
@@ -0,0 +1,10 @@
+--- CMakeLists.txt.orig	2018-08-07 11:40:49 UTC
++++ CMakeLists.txt
+@@ -41,7 +41,6 @@ IF(CMAKE_COMPILER_IS_GNUCC OR (CMAKE_C_C
+ 	SET(CMAKE_BUILD_TYPE_DebugFast)
+ 	SET(CMAKE_CXX_FLAGS_DEBUGFAST "-g -O0")
+ 	SET(CMAKE_C_FLAGS_DEBUGFAST "-g -O0")
+-	SET(CMAKE_C_FLAGS "-msse2")
+ 	if(NOT CMAKE_BUILD_TYPE)
+ 	        SET(CMAKE_BUILD_TYPE "DebugFast")
+ 	endif(NOT CMAKE_BUILD_TYPE)



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