svn commit: r561892 - head/devel/benchmark

Piotr Kubaj pkubaj at FreeBSD.org
Mon Jan 18 02:09:04 UTC 2021


Author: pkubaj
Date: Mon Jan 18 02:09:03 2021
New Revision: 561892
URL: https://svnweb.freebsd.org/changeset/ports/561892

Log:
  devel/benchmark: fix build on GCC architectures
  
  Don't add -Wno-thread-safety-analysis, which doesn't work with GCC and add -Wno-stringop-truncation.
  
  MFH:		2021Q1

Modified:
  head/devel/benchmark/Makefile

Modified: head/devel/benchmark/Makefile
==============================================================================
--- head/devel/benchmark/Makefile	Mon Jan 18 00:55:56 2021	(r561891)
+++ head/devel/benchmark/Makefile	Mon Jan 18 02:09:03 2021	(r561892)
@@ -19,7 +19,9 @@ USE_LDCONFIG=	yes
 CMAKE_ON=	BUILD_SHARED_LIBS
 CMAKE_OFF=	BENCHMARK_ENABLE_TESTING
 
-CXXFLAGS+=	-Wno-thread-safety-analysis # workaround for https://github.com/google/benchmark/issues/655
+CXXFLAGS+=	${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
+CXXFLAGS_clang=	-Wno-thread-safety-analysis # workaround for https://github.com/google/benchmark/issues/655
+CXXFLAGS_gcc=	-Wno-stringop-truncation
 CXXFLAGS+=	-Wno-sign-compare # workaround for https://github.com/google/googletest/issues/1752
 
 do-test: # Broken: https://github.com/google/benchmark/issues/979


More information about the svn-ports-all mailing list