Skip to content

Commit

Permalink
Try to fix rustflags env var definition
Browse files Browse the repository at this point in the history
Signed-off-by: Timothy Johnson <[email protected]>
  • Loading branch information
t1m0thyj committed Nov 1, 2023
1 parent 03ef98b commit 6f2d47c
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/secrets/scripts/configure-cross.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,29 @@

# Set environment variables needed for cross-compilation in current shell
set_env() {
echo "CROSS_DEB_ARCH=$1" >> $GITHUB_ENV
echo "PKG_CONFIG_SYSROOT_DIR=\"${CHROOT:-/}\"" >> $GITHUB_ENV
# echo "RUSTFLAGS=\"-L $CHROOT$2 $RUSTFLAGS\"" >> $GITHUB_ENV
echo "PKG_CONFIG_PATH=\"$CHROOT$2/pkgconfig\"" >> $GITHUB_ENV
echo "PKG_CONFIG_SYSROOT_DIR=\"/\"" >> $GITHUB_ENV
echo "RUSTFLAGS=\"-L $1\"" >> $GITHUB_ENV
echo "PKG_CONFIG_PATH=\"$1/pkgconfig\"" >> $GITHUB_ENV
}

case "$1" in
"aarch64")
set_env arm64 "/usr/lib/aarch64-linux-gnu"
set_env "/usr/lib/aarch64-linux-gnu"
;;
"armv7")
set_env armhf "/usr/lib/arm-linux-gnueabihf"
set_env "/usr/lib/arm-linux-gnueabihf"
;;
"ppc64le")
set_env ppc64el "/usr/lib/powerpc64le-unknown-linux-gnu"
set_env "/usr/lib/powerpc64le-unknown-linux-gnu"
;;
"s390x")
set_env s390x "/usr/lib/s390x-unknown-linux-gnu"
set_env "/usr/lib/s390x-unknown-linux-gnu"
;;
"x86")
set_env i686 "/usr/lib/i386-linux-gnu"
set_env "/usr/lib/i386-linux-gnu"
;;
"x86_64")
set_env x86_64 "/usr/lib/x86_64-linux-gnu"
set_env "/usr/lib/x86_64-linux-gnu"
;;
*)
;;
Expand Down

0 comments on commit 6f2d47c

Please sign in to comment.