The Expat package contains a stream oriented C library for parsing XML.
Prepare Expat for compilation:
./configure --prefix=/usr \ --disable-static \ --docdir=/usr/share/doc/expat-2.6.4
Compile the package:
make
To test the results, issue:
make check
Install the package:
make install
If desired, install the documentation:
install -v -m644 doc/*.{html,css} /usr/share/doc/expat-2.6.4
Clean previous build but keep precompiled doc because it cannot be rebuilt in this stage of the system:
sed -e "/^am__append_1/ s/doc//" -i Makefile make clean
Prepare Expat for compilation:
CC="gcc -m32" ./configure \ --prefix=/usr \ --disable-static \ --libdir=/usr/lib32 \ --host=i686-pc-linux-gnu
Compile the package:
make
Install the package:
make DESTDIR=$PWD/DESTDIR install cp -Rv DESTDIR/usr/lib32/* /usr/lib32 rm -rf DESTDIR
Clean previous build but keep precompiled doc because it cannot be rebuilt in this stage of the system:
sed -e "/^am__append_1/ s/doc//" -i Makefile make clean
Prepare Expat for compilation:
CC="gcc -mx32" ./configure \ --prefix=/usr \ --disable-static \ --libdir=/usr/libx32 \ --host=x86_64-pc-linux-gnux32
Compile the package:
make
Install the package:
make DESTDIR=$PWD/DESTDIR install cp -Rv DESTDIR/usr/libx32/* /usr/libx32 rm -rf DESTDIR