mysql: fix cross compilation.
This commit is contained in:
parent
12bacc7230
commit
a068928258
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue