6 # Build autoconf 2.13 for browser's sole use.
11 --prefix="$PWD/../junk" \
12 --program-suffix=-2.13
18 if ! command -v yasm
; then (
25 make DESTDIR
="$PWD/../junk" install
28 for f
in zip unzip; do
29 if ! kiss list
"$f"; then (
33 -f unix
/Makefile generic
36 prefix
="$PWD/../junk" \
37 -f unix
/Makefile
install
43 export CFLAGS
="-pipe -march=westmere"
44 export CXXFLAGS
="$CFLAGS"
46 export PATH
="$PWD/junk/bin:$PATH"
48 sed -e 's#%SRCDIR%#'"$(realpath .)"'#g' -e "s#%CFLAGS%#$CFLAGS#g" mozconfig.
in > .mozconfig
50 for patch in *.
patch; do
54 export LDFLAGS
="$LDFLAGS -Wl,-rpath=/usr/lib/browser"
56 # Apparently `mach` is now a *bash* script, yet it's marked as /bin/sh.
57 # So we just delete the offending code.
58 printf '#!/bin/sh\n./platform/mach $@' > .
/mach
66 cp -r objdir
/dist
/palemoon
"$1/usr/lib/browser"
67 ln -s ..
/lib
/browser
/palemoon
"$1/usr/bin/browser"