Home » Uncategorized » firefox nightly for alpine linux

firefox nightly for alpine linux

recently firefox configure script has changed,

it come with python, i think this is no good.

vi ../firefox/build/moz.configure/rust.configure

# target_arg = ‘–target=’ + rustc_target.alias
target_arg = ‘–target=x86_64-alpine-linux-musl’

#set_config(‘RUST_TARGET’, rust_target_triple)
#set_config(‘RUST_HOST_TARGET’, rust_host_triple)

set_config(‘RUST_TARGET’,’x86_64-alpine-linux-musl’)
set_config(‘RUST_HOST_TARGET’, ‘x86_64-alpine-linux-musl’)

vi ../firefox/mozconfig

# My first mozilla config
ac_add_options –host=x86_64-alpine-linux-musl
ac_add_options –target=x86_64-alpine-linux-musl
mk_add_options MOZ_MAKE_FLAGS=”-j4″
ac_add_options BINDGEN_CFLAGS=’-I/usr/include/nspr -I/usr/include/pixman-1′

vi ../firefox/security/manager/ssl/nsNSSIOLayer.cpp +49

+#define SSL_ENABLE_TLS13_COMPAT_MODE 35

vi run.sh

export SHELL=/bin/sh
export BUILD_OFFICIAL=1
export MOZILLA_OFFICIAL=1
export USE_SHORT_LIBNAME=1
export CXXFLAGS=”-fno-delete-null-pointer-checks -fno-schedule-insns2″
export LDFLAGS=”$LDFLAGS -Wl,-rpath,/usr/lib/firefox-59.0a1″

../firefox/configure \
–prefix=/usr \
\
–disable-crashreporter \
–disable-elf-hack \
–disable-gold \
–disable-install-strip \
–disable-jemalloc \
–disable-profiling \
–disable-pulseaudio \
–disable-strip \
–disable-tests \
–disable-updater \
\
–enable-alsa \
–enable-default-toolkit=cairo-gtk3 \
–enable-official-branding \
–enable-optimize=”$CFLAGS” \
–enable-pie \
–enable-startup-notification \
–enable-system-ffi \
–enable-system-hunspell \
–enable-system-sqlite \
\
–with-pthreads \
–with-system-bz2 \
–with-system-icu \
–with-system-jpeg \
–with-system-libevent \
–with-system-libvpx \
–with-system-nspr \
–with-system-nss \
–with-system-pixman \
–with-system-png \
–with-system-zlib \
–with-clang-path=/usr/bin/clang \
–with-libclang-path=/usr/lib

make
paxmark -msp dist/bin/xpcshell

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s