Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


On 19/09/12 10:35, Henrik /KaarPoSoft wrote:
Dear all,

I am trying to build version 3.6.2.1 from source on a Linux box.

I want to use headers already on system and system installed versions of 
libraries as much as possible, so I pass --with-system-headers 
--with-system-libs to ./configure.

The external dependencies are installed in /opt, so I
export CPPFLAGS="-I/opt/include"
export LDFLAGS="-L/opt/lib"
before running ./autogen.sh

LibreOffice currently has 2 build systems; the new one should respect
these variables, but the old one probably does not, which effectively
makes them useless today.  you will probably have a better time by
setting PATH to /opt/bin and whatever variable is used by pkg-config, as
long as all the externals you have installed there have a foo-config
script or are pkg-config enabled the LO configure script should set
things up the right way.

another alternative would be to install a complete baseline (i.e. incl.
libc and everything needed) into some prefix and make use of the
existing GCC --sysroot support, but i've actually never done that in a
configure environment (i just remember that it was used to build OOo at
Sun), and you probably have to fix up some bitrot to get it to actually
work (reading configure it seems you'd need to set SYSBASE var).

I also have
export LD_LIBRARY_PATH="/opt/lib"

apparently the new build system overwrites this always, guess nobody
ever needed to set this from the outside; you could try to edit various
occurrences in solenv/gbuild to prepend the values if it is already defined.


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.