]> hackdaworld.org Git - hdw-linux/hdw-linux.git/blob - packages/base/zlib/zlib
fixed kern ver for toolchain glibc build
[hdw-linux/hdw-linux.git] / packages / base / zlib / zlib
1 # hdw - linux zlib package
2 #
3 # author: hackbard@hackdaworld.dyndns.org
4 #
5 # [V] 1.2.2
6 # [S] 2-6
7 # [D] zlib-1.2.2.tar.bz2 http://www.gzip.org/zlib/
8
9 confopt="--prefix=$root/usr --shared --libdir=$root/lib"
10 export CFLAGS="$CFLAGS -fPIC"
11 flist_pruned="$flist_pruned|etc/ld.so.cache"
12
13 post_install()  {
14         # build static libs
15         make clean &&
16         ./configure --prefix=$root/usr
17         make && make install
18         chmod 644 $prefix/lib/libz.a
19         # corect location
20         rm $root/lib/libz.so
21         ln -svf ../../lib/libz.so.1 $prefix/lib/libz.so
22                 }