Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Oct 2020 11:18:26 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r552862 - in head/security/helib: . files
Message-ID:  <202010211118.09LBIQbD004929@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Wed Oct 21 11:18:25 2020
New Revision: 552862
URL: https://svnweb.freebsd.org/changeset/ports/552862

Log:
  security/helib: disable -march=native
  
  Also fixes a build issue on powerpc64/12.1-RELEASE:
  g++9: error: unrecognized command line option '-march=native'; did you mean '-mcpu=native'?

Added:
  head/security/helib/files/patch-CMakeLists.txt   (contents, props changed)
Modified:
  head/security/helib/Makefile

Modified: head/security/helib/Makefile
==============================================================================
--- head/security/helib/Makefile	Wed Oct 21 10:44:12 2020	(r552861)
+++ head/security/helib/Makefile	Wed Oct 21 11:18:25 2020	(r552862)
@@ -3,6 +3,7 @@
 PORTNAME=	helib
 DISTVERSIONPREFIX=	v
 DISTVERSION=	1.1.0
+PORTREVISION=	1
 CATEGORIES=	security
 
 MAINTAINER=	yuri@FreeBSD.org

Added: head/security/helib/files/patch-CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/helib/files/patch-CMakeLists.txt	Wed Oct 21 11:18:25 2020	(r552862)
@@ -0,0 +1,29 @@
+--- CMakeLists.txt.orig	2020-10-21 10:59:03 UTC
++++ CMakeLists.txt
+@@ -87,18 +87,6 @@ set_property(CACHE
+              PROPERTY
+              STRINGS "Debug" "RelWithDebInfo" "Release" "MinSizeRel")
+ 
+-# Creating and documenting TARGET_ARCHITECTURE cmake property
+-set(TARGET_ARCHITECTURE "${TARGET_ARCHITECTURE}"
+-    CACHE
+-    STRING "Target architecture used for -march (default is native)")
+-# If TARGET_ARCHITECTURE is not set use default
+-if (NOT TARGET_ARCHITECTURE)
+-  set(TARGET_ARCHITECTURE "native"
+-      CACHE
+-      STRING "Target architecture used for -march (default is native)"
+-      FORCE)
+-endif (NOT TARGET_ARCHITECTURE)
+-
+ # Path containing FindGMP.cmake and FindNTL.cmake
+ list(APPEND CMAKE_MODULE_PATH "${HELIB_CMAKE_EXTRA_DIR}")
+ 
+@@ -150,7 +138,6 @@ endif (NOT PACKAGE_BUILD)
+ 
+ # Setting flag lists to avoid polluting CMAKE_CXX_FLAGS.
+ # PUBLIC_HELIB_CXX_FLAGS will be exported to the installed target.
+-set(PRIVATE_HELIB_CXX_FLAGS "-march=${TARGET_ARCHITECTURE}")
+ set(PUBLIC_HELIB_CXX_FLAGS "")
+ # Add extra checks during build
+ if (PEDANTIC_BUILD)



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