mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 15:43:49 +02:00
firefox: fix musl build
This commit is contained in:
parent
b2da75f2af
commit
bd7ff1a7a6
1 changed files with 7 additions and 5 deletions
|
@ -11,9 +11,6 @@ checksum=0e0a39caabf94d7467d8bb4008fa9e7340a7be57b8c78ccf0cf98791a3bfaaff
|
||||||
|
|
||||||
only_for_archs="i686 i686-musl x86_64 x86_64-musl"
|
only_for_archs="i686 i686-musl x86_64 x86_64-musl"
|
||||||
lib32disabled=yes
|
lib32disabled=yes
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
|
||||||
*-musl) broken="https://build.voidlinux.eu/builders/x86_64-musl_builder/builds/7598/steps/shell_3/logs/stdio" ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
hostmakedepends="autoconf213 unzip zip pkg-config perl python yasm rust cargo
|
hostmakedepends="autoconf213 unzip zip pkg-config perl python yasm rust cargo
|
||||||
llvm clang"
|
llvm clang"
|
||||||
|
@ -33,8 +30,6 @@ build_options_default="alsa dbus pulseaudio startup_notification xscreensaver"
|
||||||
post_extract() {
|
post_extract() {
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
*-musl)
|
*-musl)
|
||||||
# fix musl rust triplet
|
|
||||||
sed -i "s/\(x86_64-unknown-linux\)-gnu/\1-musl/" build/moz.configure/rust.configure
|
|
||||||
cp "${FILESDIR}/stab.h" toolkit/crashreporter/google-breakpad/src/
|
cp "${FILESDIR}/stab.h" toolkit/crashreporter/google-breakpad/src/
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -57,6 +52,13 @@ do_build() {
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
x86_64-musl)
|
||||||
|
echo "ac_add_options --host=x86_64-unknown-linux-musl" >>.mozconfig
|
||||||
|
echo "ac_add_options --target=x86_64-unknown-linux-musl" >>.mozconfig
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
export HOST_CFLAGS="${XBPS_CFLAGS}"
|
export HOST_CFLAGS="${XBPS_CFLAGS}"
|
||||||
export HOST_CXXFLAGS="${XBPS_CXXFLAGS}"
|
export HOST_CXXFLAGS="${XBPS_CXXFLAGS}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue