# add -latomic where needed (i486)
if [ "$CARCH" = 'i486' ]; then
  eval "$(
    declare -f build | \
      sed '
        /configure/ i \
        export LIBS+=" -latomic"
      '
  )"
fi