svn commit: r508170 - in head/misc/libsweep-lidar: . files
Piotr Kubaj
pkubaj at FreeBSD.org
Mon Aug 5 13:53:20 UTC 2019
Author: pkubaj
Date: Mon Aug 5 13:53:19 2019
New Revision: 508170
URL: https://svnweb.freebsd.org/changeset/ports/508170
Log:
misc/libsweep-lidar: fix build with GCC architectures
This needs c++11 compiler. GCC from ports doesn't support -Weverything.
PR: 239332
Approved by: hyun at caffeinated.codes (maintainer), tcberner (mentor)
Differential Revision: https://reviews.freebsd.org/D21145
Added:
head/misc/libsweep-lidar/files/patch-libsweep_CMakeLists.txt (contents, props changed)
Modified:
head/misc/libsweep-lidar/Makefile
Modified: head/misc/libsweep-lidar/Makefile
==============================================================================
--- head/misc/libsweep-lidar/Makefile Mon Aug 5 13:31:45 2019 (r508169)
+++ head/misc/libsweep-lidar/Makefile Mon Aug 5 13:53:19 2019 (r508170)
@@ -11,9 +11,7 @@ COMMENT= Low-level Scanse Sweep LiDAR library
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-BROKEN_powerpc64= fails to compile: unrecognized command line option "-Weverything"
-
-USES= cmake
+USES= cmake compiler:c++11-lang
USE_GITHUB= yes
GH_ACCOUNT= scanse
GH_PROJECT= sweep-sdk
Added: head/misc/libsweep-lidar/files/patch-libsweep_CMakeLists.txt
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/misc/libsweep-lidar/files/patch-libsweep_CMakeLists.txt Mon Aug 5 13:53:19 2019 (r508170)
@@ -0,0 +1,11 @@
+--- libsweep/CMakeLists.txt.orig 2019-07-20 09:46:23 UTC
++++ libsweep/CMakeLists.txt
+@@ -19,7 +19,7 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
+ set(libsweep_OS unix)
+
+ elseif(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
+- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Weverything -fvisibility=hidden -fPIC -fno-rtti")
++ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fvisibility=hidden -fPIC -fno-rtti")
+ set(libsweep_OS unix)
+
+ elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
More information about the svn-ports-all
mailing list