For ref (PATH="/home/bin:/home/lib:/home/share:/home/include:/bin:/sbin:/sbin")
Zlib Walkthrough
Get thing
Follow
the instructions above for getting the file and then
cd zlib (or
cd ../zlib if you are following those instructions still)
Configure thing
Code:
(armv6l:1) /home/src/subversion-1.6.18/zlib # ./configure --help
usage:
configure [--zprefix] [--prefix=PREFIX] [--eprefix=EXPREFIX]
[--static] [--64] [--libdir=LIBDIR] [--sharedlibdir=LIBDIR]
[--includedir=INCLUDEDIR] [--archs="-arch i386 -arch x86_64"]
./configure --prefix=/home --libdir=/home/lib --static --includedir=/home/include
Code:
Checking for gcc...
Building static library libz.a version 1.2.6 with gcc.
Checking for off64_t... Yes.
Checking for fseeko... Yes.
Checking for unistd.h... Yes.
Checking for stdarg.h... Yes.
Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf().
Checking for vsnprintf() in stdio.h... Yes.
Checking for return value of vsnprintf()... Yes.
Checking for attribute(visibility) support... Yes.
Make thing
make
Install thing
make install
Code:
cp libz.a /home/lib
chmod 644 /home/lib/libz.a
cp zlib.3 /home/share/man/man3
chmod 644 /home/share/man/man3/zlib.3
cp zlib.pc /home/lib/pkgconfig
chmod 644 /home/lib/pkgconfig/zlib.pc
cp zlib.h zconf.h /home/include
chmod 644 /home/include/zlib.h /home/include/zconf.h
Doned
Note this was done with --static. I´m still not 100% certain that is correct, time will tell no doubt.