mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
firefox: use generic libatomic checks
This commit is contained in:
parent
8fe4437fe1
commit
10a88d8be4
1 changed files with 11 additions and 12 deletions
|
@ -32,16 +32,15 @@ build_options="alsa jack dbus pulseaudio startup_notification xscreensaver sndio
|
||||||
build_options_default="alsa jack dbus pulseaudio startup_notification xscreensaver sndio wayland"
|
build_options_default="alsa jack dbus pulseaudio startup_notification xscreensaver sndio wayland"
|
||||||
|
|
||||||
case $XBPS_TARGET_MACHINE in
|
case $XBPS_TARGET_MACHINE in
|
||||||
armv6*)
|
armv6*) broken="required NEON extensions are not supported on armv6" ;;
|
||||||
broken="required NEON extensions are not supported on armv6"
|
|
||||||
;;
|
|
||||||
ppc64*) ;;
|
ppc64*) ;;
|
||||||
ppc*)
|
ppc*) broken="xptcall bitrot" ;;
|
||||||
makedepends+=" libatomic-devel"
|
|
||||||
broken="xptcall bitrot"
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
||||||
|
makedepends+=" libatomic-devel"
|
||||||
|
fi
|
||||||
|
|
||||||
# we need this because cargo verifies checksums of all files in vendor
|
# we need this because cargo verifies checksums of all files in vendor
|
||||||
# crates when it builds and gives us no way to override or update the
|
# crates when it builds and gives us no way to override or update the
|
||||||
# file sanely... so just clear out the file list
|
# file sanely... so just clear out the file list
|
||||||
|
@ -88,15 +87,15 @@ do_build() {
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# webrtc currently fails to build on 32-bit ppc...
|
# webrtc currently fails to build on 32-bit ppc...
|
||||||
# also need explicit libatomic
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
ppc64*) ;;
|
ppc64*) ;;
|
||||||
ppc*)
|
ppc*) echo "ac_add_options --disable-webrtc" >>.mozconfig ;;
|
||||||
echo "ac_add_options --disable-webrtc" >>.mozconfig
|
|
||||||
export LDFLAGS+=" -latomic"
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
||||||
|
export LDFLAGS+=" -latomic"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
BINDGEN_INCLUDE_FLAGS=$( $CPP -x c++ -v /dev/null -o /dev/null 2>&1 | \
|
BINDGEN_INCLUDE_FLAGS=$( $CPP -x c++ -v /dev/null -o /dev/null 2>&1 | \
|
||||||
sed -n '/#include <...> search starts here:/,/End of search list./p' | \
|
sed -n '/#include <...> search starts here:/,/End of search list./p' | \
|
||||||
|
|
Loading…
Add table
Reference in a new issue