mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
development/cargo-vendor: Fix build on i?86.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
parent
55d8113a76
commit
1ab50bb44a
1 changed files with 12 additions and 1 deletions
|
@ -24,7 +24,7 @@
|
|||
|
||||
PRGNAM=cargo-vendor
|
||||
VERSION=${VERSION:-0.1.12}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
|
@ -213,6 +213,17 @@ find -L . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
if case "$ARCH" in i?86) true ;; *) false ;; esac ; then
|
||||
# error: failed to run custom build command for `openssl-sys v0.9.17`
|
||||
# process didn't exit successfully: `/tmp/SBo/cargo-vendor-0.1.12/target/release/build/openssl-sys-1001b6424b340fb9/build-script-build` (exit code: 101)
|
||||
# --- stdout
|
||||
# cargo:rerun-if-env-changed=OPENSSL_LIB_DIR
|
||||
# cargo:rerun-if-env-changed=OPENSSL_INCLUDE_DIR
|
||||
# cargo:rerun-if-env-changed=OPENSSL_DIR
|
||||
# run pkg_config fail: "Cross compilation detected. Use PKG_CONFIG_ALLOW_CROSS=1 to override"
|
||||
export PKG_CONFIG_ALLOW_CROSS=1
|
||||
fi
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
cargo build --release $CARGOTARGET
|
||||
|
|
Loading…
Reference in a new issue