From 951c62e6f76607b4a61509f7879f6a4cca9f9f4b Mon Sep 17 00:00:00 2001 From: Rasmus Thomsen Date: Sun, 11 Aug 2019 14:17:48 +0200 Subject: [PATCH] newapkbuild: add -dbg package by default & make optimized-debug builds the default ref https://gitlab.alpinelinux.org/alpine/aports/issues/10603 --- newapkbuild.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/newapkbuild.in b/newapkbuild.in index f0dc911cb8..f5dc882e88 100644 --- a/newapkbuild.in +++ b/newapkbuild.in @@ -65,7 +65,7 @@ build_cmake() { -DCMAKE_INSTALL_PREFIX=/usr \\ -DCMAKE_INSTALL_LIBDIR=lib \\ -DBUILD_SHARED_LIBS=True \\ - -DCMAKE_BUILD_TYPE=Release \\ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \\ -DCMAKE_CXX_FLAGS="\$CXXFLAGS" \\ -DCMAKE_C_FLAGS="\$CFLAGS" \\ \${CMAKE_CROSSOPTS} . @@ -85,7 +85,7 @@ build_meson() { --sysconfdir=/etc \\ --mandir=/usr/share/man \\ --localstatedir=/var \\ - --buildtype=release \\ + --buildtype=debugoptimized \\ . output ninja -C output __EOF__ @@ -252,7 +252,7 @@ depends="$depends" depends_dev="" makedepends="$makedepends" install="$install" -subpackages="\$pkgname-dev \$pkgname-doc" +subpackages="\$pkgname-dev \$pkgname-doc \$pkgname-dbg" source="$source" __EOF__