diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2013-04-02 16:52:31 +0100 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2013-04-03 11:02:27 +0100 |
commit | ad42b34b1b2544a462f48373199d6b22f4c70f38 (patch) | |
tree | 0ff5e4cfd3d297f786e4190582490c2025caa605 /autobuild.sh | |
parent | f006f1956184184b7531b72231d43f3246cbfd32 (diff) | |
download | libvirt-ad42b34b1b2544a462f48373199d6b22f4c70f38.tar.gz |
Disable static libraries by default
Every source file is currently built twice by libtool, once for
the shared library and once for the static library. Static libs
are not commonly packaged by distros and slow down compilation
time by more than 50% compared to a shared-only build time.
Time for 'make -j 4':
shared only: 2 mins 9 secs
shared + static: 3 mins 26 secs
Time for non-parallel make
shared only: 3 mins 32 secs
shared + static: 5 mins 41 secs
Those few people who really want them, can pass --enable-static
to configure
Disabling them by default requires use of LT_INIT, but for
compat with RHEL5 we can't rely on that. So we conditionally
use LT_INIT, but fallback to AM_PROG_LIBTOOL if not present.
Diffstat (limited to 'autobuild.sh')
-rwxr-xr-x | autobuild.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/autobuild.sh b/autobuild.sh index b3cb2514b5..a8781b0791 100755 --- a/autobuild.sh +++ b/autobuild.sh @@ -20,7 +20,8 @@ cd build ../autogen.sh --prefix="$AUTOBUILD_INSTALL_ROOT" \ --enable-test-coverage \ --disable-nls \ - --enable-werror + --enable-werror \ + --enable-static # If the MAKEFLAGS envvar does not yet include a -j option, # add -jN where N depends on the number of processors. |