net/grive2: fix build on GCC architectures
Use C++11 compiler and don't add -D_GLIBCXX_USE_CXX11_ABI=0. With -D_GLIBCXX_USE_CXX11_ABI=0: /usr/local/bin/ld: libgrive/CMakeFiles/btest.dir/test/btest/JsonValTest.cc.o: in function `_GLOBAL__sub_I__ZN11JsonValTest4Test11test_methodEv': JsonValTest.cc:(.text.startup+0x174): undefined reference to `boost::unit_test::ut_detail::normalize_test_case_name(boost::unit_test::basic_cstring<char const>)' /usr/local/bin/ld: libgrive/CMakeFiles/btest.dir/test/btest/ValTest.cc.o: in function `boost::unit_test::make_test_case(boost::function<void ()> const&, boost::unit_test::basic_cstring<char const>, boost::unit_test::basic_cstring<char const>, unsigned long)': ValTest.cc:(.text._ZN5boost9unit_test14make_test_caseERKNS_8functionIFvvEEENS0_13basic_cstringIKcEES8_m[_ZN5boost9unit_test14make_test_caseERKNS_8functionIFvvEEENS0_13basic_cstringIKcEES8_m]+0x58): undefined reference to `boost::unit_test::ut_detail::normalize_test_case_name(boost::unit_test::basic_cstring<char const>)' collect2: error: ld returned 1 exit status PR: 241058 Approved by: cpm (maintainer), linimon (mentor)
This commit is contained in:
parent
b139175895
commit
c86a2c9b1f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=513951
@ -20,7 +20,7 @@ LIB_DEPENDS= libboost_filesystem.so:devel/boost-libs \
|
||||
libgpg-error.so:security/libgpg-error \
|
||||
libyajl.so:devel/yajl
|
||||
|
||||
USES= cmake compiler localbase pkgconfig
|
||||
USES= cmake compiler:c++11-lang localbase pkgconfig
|
||||
CXXFLAGS+= ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
|
||||
CXXFLAGS_clang= -Wno-c++11-narrowing
|
||||
|
||||
|
@ -1,11 +0,0 @@
|
||||
--- libgrive/CMakeLists.txt.orig 2018-07-22 23:40:23 UTC
|
||||
+++ libgrive/CMakeLists.txt
|
||||
@@ -145,7 +145,7 @@ target_link_libraries( btest
|
||||
)
|
||||
|
||||
if ( ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" )
|
||||
- set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-c++11-narrowing" )
|
||||
+ set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_GLIBCXX_USE_CXX11_ABI=0" )
|
||||
endif ( ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" )
|
||||
|
||||
if ( WIN32 )
|
Loading…
Reference in New Issue
Block a user