diff --git a/srcpkgs/mariadb/template b/srcpkgs/mariadb/template index 437ff757b38..78d5e2dbdbe 100644 --- a/srcpkgs/mariadb/template +++ b/srcpkgs/mariadb/template @@ -34,35 +34,31 @@ replaces="mysql>=0" conf_files="/etc/mysql/my.cnf" system_accounts="mysql" mysql_homedir="/var/lib/mysql" -CFLAGS="-w -fcommon" +CFLAGS="-w -fcommon -DDBUG_OFF=1" +CXXFLAGS="-DDBUG_OFF=1" pre_configure() { # We need some host binaries before starting cross compilation. if [ "$CROSS_BUILD" ]; then + mkdir -p build.native # XXX still broken: jemalloc configure execs host bins. - CC= CXX= CPP= LD= AR= AS= RANLIB= CFLAGS= CXXFLAGS= LDFLAGS= cmake . - make comp_err comp_sql gen_lex_hash gen_lex_token - mkdir bin.host - cp extra/comp_err bin.host - cp scripts/comp_sql bin.host - cp sql/gen_lex_hash bin.host - cp sql/gen_lex_token bin.host - make clean - rm CMakeCache.txt + CC= CXX= CPP= LD= AR= AS= RANLIB= CFLAGS= CXXFLAGS= LDFLAGS= \ + cmake -S . -B build.native + make -C build.native comp_err comp_sql gen_lex_hash gen_lex_token fi } pre_build() { if [ "$CROSS_BUILD" ]; then # CMake complains if those binaries ain't in build - cp bin.host/comp_err ${wrksrc}/extra - cp bin.host/comp_err ${wrksrc}/build/extra - cp bin.host/comp_sql ${wrksrc}/scripts - cp bin.host/comp_sql ${wrksrc}/build/scripts - cp bin.host/gen_lex_hash ${wrksrc}/sql - cp bin.host/gen_lex_hash ${wrksrc}/build/sql - cp bin.host/gen_lex_token ${wrksrc}/sql - cp bin.host/gen_lex_token ${wrksrc}/build/sql + cp build.native/extra/comp_err ${wrksrc}/extra + cp build.native/extra/comp_err ${wrksrc}/build/extra + cp build.native/scripts/comp_sql ${wrksrc}/scripts + cp build.native/scripts/comp_sql ${wrksrc}/build/scripts + cp build.native/sql/gen_lex_hash ${wrksrc}/sql + cp build.native/sql/gen_lex_hash ${wrksrc}/build/sql + cp build.native/sql/gen_lex_token ${wrksrc}/sql + cp build.native/sql/gen_lex_token ${wrksrc}/build/sql export PATH=${PATH}:${wrksrc}/extra:${wrksrc}/scripts:${wrksrc}/sql fi export LD_LIBRARY_PATH=${wrksrc}/build/storage/tokudb/ft-index/portability