From c26be24f00dcb9662319ecf0d796f53fa65c87a9ef643d3a86a8f056f8e8be3b Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Tue, 12 Sep 2023 08:08:54 +0000 Subject: [PATCH] Accepting request 1105413 from home:jengelh:branches:devel:libraries:c_c++ FAAAAALGS OBS-URL: https://build.opensuse.org/request/show/1105413 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libphonenumber?expand=0&rev=18 --- libphonenumber.changes | 5 +++++ libphonenumber.spec | 2 ++ 2 files changed, 7 insertions(+) diff --git a/libphonenumber.changes b/libphonenumber.changes index dff5723..092aeff 100644 --- a/libphonenumber.changes +++ b/libphonenumber.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Aug 22 22:39:31 UTC 2023 - Jan Engelhardt + +- Force-add -DNDEBUG to CFLAGS; libphonenumber relies on it. + ------------------------------------------------------------------- Mon Jun 26 09:00:14 UTC 2023 - Fabian Vogt diff --git a/libphonenumber.spec b/libphonenumber.spec index 1e76114..95652f6 100644 --- a/libphonenumber.spec +++ b/libphonenumber.spec @@ -78,6 +78,8 @@ that use libphonenumber. %build cd cpp +export CFLAGS="%optflags -DNDEBUG" +export CXXFLAGS="$CFLAGS" # Enabling the geocoder breaks quite a lot due to broken cmakelists # (https://github.com/google/libphonenumber/pull/2556) %cmake -DBUILD_STATIC_LIB=OFF -DBUILD_SHARED_LIB=ON -DBUILD_TESTING=ON -DBUILD_GEOCODER=OFF -DREGENERATE_METADATA=OFF