Short story: system libraries are your friend. Now, it is not super easy to make a build that is using 100% system libraries, but you can go a long way with this, and very easily too.
Reminder: I am doing this from Fedora 15 system with an Icecream cluster.
This is the procedure:
1. Clone the latest repository. If you are behind a firewall, use corkscrew
git clone ssh://git.freedesktop.org/git/libreoffice/core.git
2. Set up build dependencies
sudo yum-builddep libreoffice
sudo yum install icecream
sudo yum install zlib-devel libjpeg-devel poppler-devel sane-backends-devel curl-devel boost-devel cppunit-devel libpng-devel
sudo yum install icecream
sudo yum install zlib-devel libjpeg-devel poppler-devel sane-backends-devel curl-devel boost-devel cppunit-devel libpng-devel
3. Configure and Icecream
sudo vim /etc/sysconfig/icecream
sudo /etc/init.d/iceccd restart
sudo chkconfig iceccd on
icecc --build-native
mkdir ~/.icecc
mv <whatever icecc generated> ~/.icecc/icecc-env.tar.gz
echo "export ICECC_DEBUG=debug">> ~/.bashrc
echo "export ICECC_VERSION=~/.icecc/icecc-env.tar.gz" >>~/.bashrc
sudo /etc/init.d/iceccd restart
sudo chkconfig iceccd on
icecc --build-native
mkdir ~/.icecc
mv <whatever icecc generated> ~/.icecc/icecc-env.tar.gz
echo "export ICECC_DEBUG=debug">> ~/.bashrc
echo "export ICECC_VERSION=~/.icecc/icecc-env.tar.gz" >>~/.bashrc
4. Generate make files
./autogen.sh --enable-icecream --with-gcc-home=/usr/lib/icecc --with-num-cpus=16 --with-max-jobs=16 --enable-symbols--with-system-libs --with-system-headers
5. Build
make; make dev-install
No comments:
Post a Comment