commit:     d1a22fa531c41c3b0d5f8c99437ec52bc19c96ac
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 11 16:30:10 2021 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Thu Mar 11 18:25:22 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1a22fa5

dev-db/mysql-connector-c: disable debug options

Previous version used now deprecated cmake-utils eclass
which added -DNDEBUG to CPP flags. With new cmake eclass
we have to do that on our own.

Let us do it the same way we do it for dev-db/mysql, i.e. set
CMAKE_BUILD_TYPE and corresponding CMAKE_CXX_FLAGS_RELWITHDEBINFO
option.

Closes: https://bugs.gentoo.org/775047
Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 ...-connector-c-8.0.23.ebuild => mysql-connector-c-8.0.23-r1.ebuild} | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dev-db/mysql-connector-c/mysql-connector-c-8.0.23.ebuild 
b/dev-db/mysql-connector-c/mysql-connector-c-8.0.23-r1.ebuild
similarity index 95%
rename from dev-db/mysql-connector-c/mysql-connector-c-8.0.23.ebuild
rename to dev-db/mysql-connector-c/mysql-connector-c-8.0.23-r1.ebuild
index 6553c3776e5..ccb3b8c270b 100644
--- a/dev-db/mysql-connector-c/mysql-connector-c-8.0.23.ebuild
+++ b/dev-db/mysql-connector-c/mysql-connector-c-8.0.23-r1.ebuild
@@ -77,7 +77,11 @@ src_prepare() {
 }
 
 multilib_src_configure() {
+       CMAKE_BUILD_TYPE="RelWithDebInfo"
+
        local mycmakeargs=(
+               -DCMAKE_C_FLAGS_RELWITHDEBINFO=-DNDEBUG
+               -DCMAKE_CXX_FLAGS_RELWITHDEBINFO=-DNDEBUG
                -DINSTALL_LAYOUT=RPM
                -DINSTALL_LIBDIR=$(get_libdir)
                -DWITH_DEFAULT_COMPILER_OPTIONS=OFF
@@ -93,6 +97,7 @@ multilib_src_configure() {
                -DCMAKE_POSITION_INDEPENDENT_CODE=ON
                -DWITHOUT_SERVER=ON
        )
+
        cmake_src_configure
 }
 

Reply via email to