nix: use generic libatomic checks
This commit is contained in:
parent
ce8f692c1c
commit
b4ca602dff
1 changed files with 2 additions and 7 deletions
|
@ -40,17 +40,12 @@ make_dirs="
|
|||
/nix/var/nix/db 0755 root root
|
||||
/nix/store 1775 root nixbld"
|
||||
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
ppc64*) ;;
|
||||
armv6*|ppc*) _need_libatomic=yes;;
|
||||
esac
|
||||
|
||||
if [ -n "$_need_libatomic" ] ;then
|
||||
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
||||
makedepends+=" libatomic-devel"
|
||||
fi
|
||||
|
||||
pre_configure() {
|
||||
if [ -n "$_need_libatomic" ]; then
|
||||
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
||||
echo "libexpr_LDFLAGS += -latomic" >> src/libexpr/local.mk
|
||||
echo "libutil_LDFLAGS += -latomic" >> src/libutil/local.mk
|
||||
echo "libstore_LDFLAGS += -latomic" >> src/libstore/local.mk
|
||||
|
|
Loading…
Add table
Reference in a new issue