mysql: fix cross compilation.

This commit is contained in:
Juan RP 2015-04-08 07:26:53 +02:00
parent 12bacc7230
commit a068928258
1 changed files with 4 additions and 4 deletions

View File

@ -38,12 +38,12 @@ pre_configure() {
# We need some host binaries before starting cross compilation.
if [ "$CROSS_BUILD" ]; then
CC= CXX= CPP= LD= AR= AS= RANLIB= CFLAGS= CXXFLAGS= LDFLAGS= cmake .
make comp_err comp_sql gen_lex_hash gen_pfs_lex_token
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 storage/perfschema/gen_pfs_lex_token bin.host
cp sql/gen_lex_token bin.host
make clean
rm CMakeCache.txt
fi
@ -53,8 +53,8 @@ pre_build() {
cp bin.host/comp_err ${wrksrc}/extra
cp bin.host/comp_sql ${wrksrc}/scripts
cp bin.host/gen_lex_hash ${wrksrc}/sql
cp bin.host/gen_pfs_lex_token ${wrksrc}/storage/perfschema
export PATH=${PATH}:${wrksrc}/extra:${wrksrc}/scripts:${wrksrc}/sql:${wrksrc}/storage/perfschema
cp bin.host/gen_lex_token ${wrksrc}/sql
export PATH=${PATH}:${wrksrc}/extra:${wrksrc}/scripts:${wrksrc}/sql
fi
}
post_install() {