Commit 99401c3e authored by Sören Tempel's avatar Sören Tempel
Browse files

main/mariadb: set CMake build type to MinSizeRel

It would be desirable to compile mariadb with the None build type to
make it pick up our CFLAGS/CXXFLAGS from /etc/abuild.conf.
Unfortunately, mariadb fails to build with the None build type. For this
reason, we use the MinSizeRel build type as a compromise as it is closet
to our default /etc/abuild.conf (i.e. uses -Os).
parent 6aa80f81
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mariadb pkgname=mariadb
pkgver=10.4.13 pkgver=10.4.13
pkgrel=0 pkgrel=1
pkgdesc="A fast SQL database server" pkgdesc="A fast SQL database server"
url="https://www.mariadb.org/" url="https://www.mariadb.org/"
pkgusers="mysql" pkgusers="mysql"
...@@ -120,6 +120,7 @@ source="https://downloads.mariadb.org/interstitial/mariadb-$pkgver/source/mariad ...@@ -120,6 +120,7 @@ source="https://downloads.mariadb.org/interstitial/mariadb-$pkgver/source/mariad
# All cmake configuration options can be displayed with: cmake ../server -LH # All cmake configuration options can be displayed with: cmake ../server -LH
build() { build() {
cmake . -DBUILD_CONFIG=mysql_release \ cmake . -DBUILD_CONFIG=mysql_release \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_PREFIX=/usr \
-DSYSCONFDIR=/etc \ -DSYSCONFDIR=/etc \
-DSYSCONF2DIR=/etc/my.cnf.d \ -DSYSCONF2DIR=/etc/my.cnf.d \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment