1.openssl 1.0.0g
#!/bin/sh
# Description: This script is dynamically compiled OpenSSL
# Reference: http://blog.csdn.net/caoyhok/article/details/7382862
destdir=/ Work/rootfs/rootfs_qtopia_qt4
# 1. Download source
wget http://www.openssl.org/source/openssl-1.0.0g.tar.gz & &
# 2. Unzip and turn on the
tar xvzf openssl-1.0.0g.tar.gz && cd openssl-1.0.0g &&
# 3. Configuration
./config no-asm shared--prefix=/&&
# 4. Modify Cross tool chain
# 62 rows cc= gcc modified to cc= arm-linux-gcc
sed- I ' 62s/cc= gcc/cc= arm-linux-gcc/'./makefile &&
# 63 row Cflag Delete-march=pentium sed-i
' 63s/- march=pentium//' ./makefile &&
# 69 line ar= ar modified to ar= arm-linux-ar sed-i
' 69s/ar= ar/ar= arm-linux-ar/' ./makefile &&
# 70 line ranlib=/usr/bin/ranlib modified to ranlib= arm-linux-ranlib
Sed-i ' 70s/ranlib= \/usr\/bin\/ranlib/ranlib= arm-linux-ranlib/'./makefile &&
# 5. Compile and install (Openssl does not Support Destdir)
# generally only need library files, you can use the method of copy make install will install some useless things made
&& make install Install_ prefix= $DESTDIR
2.tiff
wget http://lion-winebuilder.googlecode.com/files/tiff-3.9.5.tar.gz
tar xvzf tiff-3.9.5.tar.gz
CD tiff-3.9.5
sh autogen.sh
./configure cc=arm-linux-gnu-gcc cxx=arm-linux-gnu-g++--prefix= $PWD/_install-- Host=arm-linux make
&& make install
3.kerberos 5.1.9
#!/bin/sh # 1. Download source project address: http://web.mit.edu/~kerberos/dist/historic.html wget http://web.mit.edu/~kerberos/dist/krb5 /1.9/krb5-1.9-signed.tar && # 2 Extract tar xvf krb5-1.9-signed.tar && tar xvzf krb5-1.9.tar.gz && #
3. Access to source directory CD KRB5-1.9/SRC && # 4./configure CC=ARM-LINUX-GCC--host=arm-linux | | echo Krb5_cv_attr_constructor_destructor=yes>linux-cache &&/configure CC=ARM-LINUX-GCC--host=
Arm-linux | | echo Krb5_cv_attr_constructor_destructor=yes>linux-cache &&/configure CC=ARM-LINUX-GCC--host=
Arm-linux--cache-file=linux-cache | | echo Ac_cv_func_regcomp=yes>>linux-cache &&/configure CC=ARM-LINUX-GCC--host=arm-linux--cache-file
=linux-cache | | echo Ac_cv_printf_positional=yes>>linux-cache &&/configure CC=ARM-LINUX-GCC--host=arm-linux--
Cache-file=linux-cache && # 3. Comment One line of code Fix:don ' t know how to do unload-time finalization for this configuration. Sed-i ' 397s/^/\/\//g './incluDe/k5-platform.h && # 7. Compile and install make && make install Dstroot=/work/rootfs/rootfs_qtopia_qt4 && Ech O "krb5 Build Install ok!"
3.foo2zijs
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21-22 |
#!/bin/sh #foo2zijs Build Shell #time: 2014-02-27 #author: Kangear # 1. Download source Wget-o Foo2zjs. Tar. GZ http://foo2zjs. Rkkda.com/foo2zjs. Tar. GZ && # 2. Solution Source Tar xvzf foo2zjs. Tar. GZ && # 3. Access Directory CD FOO2ZJS && # 4. Static cflag+=-static sed-i ' 294s/-o2-wall/-o2-static-wall/' . /makefile |