Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
cross compiling webkit browser
#! /bin/sh
# webkit cross compile script
#
# assume that we have valid cross toolchain
# and PATH is set appropriately
export PKG_CONFIG_PATH=/opt/cross/root/usr/lib/pkgconfig
export PATH=/opt/cross/root/usr/bin:$PATH
cd /opt/cross
mkdir src root && cp src
# included in glibc?
wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.tar.gz -O- | tar xzf -
cd libiconv-1.13
./configure --host=mipsel-linux --prefix=/opt/cross/root/usr
make all install
cd ..
wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.7.tar.gz -O- | tar xzf -
cd ncurses-5.7
# need patch for run_tic.sh?
./configure --host=mipsel-linux --prefix=/opt/cross/root/usr --enabled-shared --without-debug
make all install
cd ..
# included in glibc?
wget http://ftp.gnu.org/pub/gnu/gettext/gettext-0.17.tar.gz -O- | tar xzf -
wget http://svn.exactcode.de/t2/trunk/package/base/gettext/wchar-fix.patch
cd gettext-0.17
patch -p1 < ../wchar-fix.patch
./configure --host=mipsel-linux --prefix=/opt/cross/root/usr
make all install
cd ..
# see http://library.gnome.org/devel/glib/stable/glib-cross-compiling.html
#glib_cv_long_long_format=ll
#glib_cv_stack_grows=no
#glib_cv_uscore=no
#ac_cv_func_posix_getpwuid_r=yes
#ac_cv_func_posix_getgrgid_r=yes
./configure --host=mipsel-linux --prefix=/opt/cross/root/usr --cache-file=mipsel-linux.cache \
--disable-xattr --disable-selinux
make all install
cd ..
wget ftp://xmlsoft.org/libxml2/libxml2-2.7.3.tar.gz -O- | tar xzf -
cd libxml2-2.7.3
./configure --host=mipsel-linux --prefix=/opt/cross/root/usr --without-python
make all install
cd ..
wget ftp://xmlsoft.org/libxml2/libxslt-1.1.24.tar.gz -O- | tar xzf -
cd libxslt-1.1.24
./configure --host=mipsel-linux --prefix=/opt/cross/root/usr --without-python
make all install
cd ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.