mariadb: fix for CMAKE_BUILD_TYPE=None
This commit is contained in:
parent
44a95e2f96
commit
8fcb165665
1 changed files with 14 additions and 18 deletions
|
@ -34,35 +34,31 @@ replaces="mysql>=0"
|
||||||
conf_files="/etc/mysql/my.cnf"
|
conf_files="/etc/mysql/my.cnf"
|
||||||
system_accounts="mysql"
|
system_accounts="mysql"
|
||||||
mysql_homedir="/var/lib/mysql"
|
mysql_homedir="/var/lib/mysql"
|
||||||
CFLAGS="-w -fcommon"
|
CFLAGS="-w -fcommon -DDBUG_OFF=1"
|
||||||
|
CXXFLAGS="-DDBUG_OFF=1"
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
# We need some host binaries before starting cross compilation.
|
# We need some host binaries before starting cross compilation.
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
mkdir -p build.native
|
||||||
# XXX still broken: jemalloc configure execs host bins.
|
# XXX still broken: jemalloc configure execs host bins.
|
||||||
CC= CXX= CPP= LD= AR= AS= RANLIB= CFLAGS= CXXFLAGS= LDFLAGS= cmake .
|
CC= CXX= CPP= LD= AR= AS= RANLIB= CFLAGS= CXXFLAGS= LDFLAGS= \
|
||||||
make comp_err comp_sql gen_lex_hash gen_lex_token
|
cmake -S . -B build.native
|
||||||
mkdir bin.host
|
make -C build.native comp_err comp_sql gen_lex_hash gen_lex_token
|
||||||
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
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
# CMake complains if those binaries ain't in build
|
# CMake complains if those binaries ain't in build
|
||||||
cp bin.host/comp_err ${wrksrc}/extra
|
cp build.native/extra/comp_err ${wrksrc}/extra
|
||||||
cp bin.host/comp_err ${wrksrc}/build/extra
|
cp build.native/extra/comp_err ${wrksrc}/build/extra
|
||||||
cp bin.host/comp_sql ${wrksrc}/scripts
|
cp build.native/scripts/comp_sql ${wrksrc}/scripts
|
||||||
cp bin.host/comp_sql ${wrksrc}/build/scripts
|
cp build.native/scripts/comp_sql ${wrksrc}/build/scripts
|
||||||
cp bin.host/gen_lex_hash ${wrksrc}/sql
|
cp build.native/sql/gen_lex_hash ${wrksrc}/sql
|
||||||
cp bin.host/gen_lex_hash ${wrksrc}/build/sql
|
cp build.native/sql/gen_lex_hash ${wrksrc}/build/sql
|
||||||
cp bin.host/gen_lex_token ${wrksrc}/sql
|
cp build.native/sql/gen_lex_token ${wrksrc}/sql
|
||||||
cp bin.host/gen_lex_token ${wrksrc}/build/sql
|
cp build.native/sql/gen_lex_token ${wrksrc}/build/sql
|
||||||
export PATH=${PATH}:${wrksrc}/extra:${wrksrc}/scripts:${wrksrc}/sql
|
export PATH=${PATH}:${wrksrc}/extra:${wrksrc}/scripts:${wrksrc}/sql
|
||||||
fi
|
fi
|
||||||
export LD_LIBRARY_PATH=${wrksrc}/build/storage/tokudb/ft-index/portability
|
export LD_LIBRARY_PATH=${wrksrc}/build/storage/tokudb/ft-index/portability
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue