encfs: libatomic is not cross-only

This commit is contained in:
q66 2020-01-09 18:33:48 +01:00
parent f525e3c000
commit 383ea0cb64
1 changed files with 5 additions and 3 deletions

View File

@ -16,11 +16,13 @@ checksum=4709f05395ccbad6c0a5b40a4619d60aafe3473b1a79bafb3aa700b1f756fd63
# Can't run test programs when cross compiling
if [ "$CROSS_BUILD" ]; then
configure_args="-DBUILD_UNIT_TESTS=0"
case "${XBPS_TARGET_MACHINE}" in
armv[56]*|ppc|ppc-musl) makedepends+=" libatomic-devel"; LDFLAGS="-latomic" ;;
esac
fi
case "$XBPS_TARGET_MACHINE" in
ppc64*) ;;
armv[56]*|ppc*) makedepends+=" libatomic-devel"; LDFLAGS="-latomic" ;;
esac
post_install() {
chmod +x ${DESTDIR}/usr/bin/encfssh
}