Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Jun 2019 19:19:39 +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: r504884 - in head/devel/xeus: . files
Message-ID:  <201906221919.x5MJJdap098571@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: linimon
Date: Sat Jun 22 19:19:38 2019
New Revision: 504884
URL: https://svnweb.freebsd.org/changeset/ports/504884

Log:
  For GCC-based systems, edit top-level CMakeLists.txt to eliminate
  either of the following two problems:
  
    g++8: error: unrecognized command line option '-march=native'
    g++8: error: unrecognized argument in option '-mtune=generic'
  
  Approved by:	portmgr (tier-2 blanket)

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

Modified: head/devel/xeus/Makefile
==============================================================================
--- head/devel/xeus/Makefile	Sat Jun 22 19:10:23 2019	(r504883)
+++ head/devel/xeus/Makefile	Sat Jun 22 19:19:38 2019	(r504884)
@@ -23,4 +23,10 @@ GH_ACCOUNT=	QuantStack
 CMAKE_OFF=	BUILD_STATIC_LIBS
 USE_LDCONFIG=	yes
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${CHOSEN_COMPILER_TYPE} == gcc
+EXTRA_PATCHES=	${FILESDIR}/extra-patch-CMakeLists.txt
+.endif
+
+.include <bsd.port.post.mk>

Added: head/devel/xeus/files/extra-patch-CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/xeus/files/extra-patch-CMakeLists.txt	Sat Jun 22 19:19:38 2019	(r504884)
@@ -0,0 +1,15 @@
+--- CMakeLists.txt.orig	2019-05-24 14:55:26 UTC
++++ CMakeLists.txt
+@@ -212,12 +212,6 @@ macro(xeus_create_target target_name lin
+ 
+         target_compile_options(${target_name} PUBLIC -Wunused-parameter -Wextra -Wreorder)
+ 
+-        if (DISABLE_ARCH_NATIVE)
+-            target_compile_options(${target_name} PUBLIC -mtune=generic)
+-        else ()
+-            target_compile_options(${target_name} PUBLIC -march=native)
+-        endif ()
+-
+         # Enable link time optimization and set the default symbol
+         # visibility to hidden (very important to obtain small binaries)
+         if (NOT ${U_CMAKE_BUILD_TYPE} MATCHES DEBUG)



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