aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2020-02-22 10:44:57 +0100
committerSören Tempel <soeren+git@soeren-tempel.net>2020-02-22 10:46:27 +0100
commit593691024ca7bcda4d52beb4d3deaea8c712434e (patch)
tree92528f854e9bfa5a242071ba583ec35197e9771b
parentd14f7dd6d9a873860e2064df8ea49269a2a9684e (diff)
downloadaports-593691024ca7bcda4d52beb4d3deaea8c712434e.tar.gz
aports-593691024ca7bcda4d52beb4d3deaea8c712434e.tar.bz2
aports-593691024ca7bcda4d52beb4d3deaea8c712434e.tar.xz
testing/mariadb-connector-odbc: fix build with CMake None build type
-rw-r--r--testing/mariadb-connector-odbc/APKBUILD8
1 files changed, 3 insertions, 5 deletions
diff --git a/testing/mariadb-connector-odbc/APKBUILD b/testing/mariadb-connector-odbc/APKBUILD
index 7890094d36..dc0d87f4de 100644
--- a/testing/mariadb-connector-odbc/APKBUILD
+++ b/testing/mariadb-connector-odbc/APKBUILD
@@ -17,16 +17,14 @@ build() {
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
- cmake \
+ # Link to /usr/include/mysql necessary when using system installed mariadb-connector-c
+ CFLAGS="$CFLAGS -I/usr/include/mysql" \
+ cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=None \
- -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
- -DCMAKE_C_FLAGS="$CFLAGS" \
- -DCMAKE_C_FLAGS_RELEASE="-I/usr/include/mysql" \
${CMAKE_CROSSOPTS} .
- # Link to /usr/include/mysql necessary when using system installed mariadb-connector-c
make
}