Created
April 22, 2009 04:59
-
-
Save namhyung/99588 to your computer and use it in GitHub Desktop.
cross compiling webkit browser
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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