From e9c42d0ed5ceefdef66587bf8ce06002fac277ee Mon Sep 17 00:00:00 2001 From: DavidKorczynski Date: Sat, 9 Jul 2022 21:11:09 +0100 Subject: libphonenumber: fix build (#7986) Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=48949 --- projects/libphonenumber/build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/libphonenumber/build.sh b/projects/libphonenumber/build.sh index 0d428f27..b003f33e 100755 --- a/projects/libphonenumber/build.sh +++ b/projects/libphonenumber/build.sh @@ -15,7 +15,7 @@ # ################################################################################ - +export CXXFLAGS="$CXXFLAGS -std=c++14" # For coverage build we need to remove some flags when building protobuf and icu if [ "$SANITIZER" = "coverage" ] @@ -77,6 +77,7 @@ fi # Build libphonenumber cd $SRC/libphonenumber/cpp sed -i 's/set (BUILD_SHARED_LIB true)/set (BUILD_SHARED_LIB false)/g' CMakeLists.txt +sed -i 's/set(CMAKE_CXX_STANDARD 11)/set(CMAKE_CXX_STANDARD 14)/g' CMakeLists.txt sed -i 's/list (APPEND CMAKE_C_FLAGS "-pthread")/string (APPEND CMAKE_C_FLAGS " -pthread")/g' CMakeLists.txt sed -i 's/# Safeguarding/find_package(absl REQUIRED) # Safeguarding/g' CMakeLists.txt -- cgit v1.2.3