firefox: disable webrtc on big endian (ftbfs)

This commit is contained in:
q66 2022-01-18 20:55:36 +01:00
parent 1baf431894
commit 4744827bd6

View file

@ -85,11 +85,11 @@ do_build() {
;;
esac
# webrtc currently fails to build on 32-bit ppc...
case "$XBPS_TARGET_MACHINE" in
ppc64*) ;;
ppc*) echo "ac_add_options --disable-webrtc" >>.mozconfig ;;
esac
# third_party/libwebrtc/common_audio/wav_file.cc:93:2: error:
# #error "Need to convert samples to big-endian when reading from WAV file"
if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
echo "ac_add_options --disable-webrtc" >>.mozconfig
fi
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
export LDFLAGS+=" -latomic"