From f42ee981668b545ab6d06c6072e262c29605273c Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Tue, 30 Jun 2009 17:09:57 +0300 Subject: Build system fixes Don't use libtool convenience libraries to avoid recently discovered long-standing subtle but somewhat severe bugs in libtool (at least 1.5.22 and 2.2.6 are affected). It was found when porting XZ Utils to Windows but the problem is significant also e.g. on GNU/Linux. Unless --disable-shared is passed to configure, static library built from a set of convenience libraries will contain PIC objects. That is, while libtool builds non-PIC objects too, only PIC objects will be used from the convenience libraries. On 32-bit x86 (tested on mobile XP2400+), using PIC instead of non-PIC makes the decompressor 10 % slower with the default CFLAGS. So while xz was linked against static liblzma by default, it got the slower PIC objects unless --disable-shared was used. I tend develop and benchmark with --disable-shared due to faster build time, so I hadn't noticed the problem in benchmarks earlier. This commit also adds support for building Windows resources into liblzma and executables. --- src/liblzma/delta/Makefile.am | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 src/liblzma/delta/Makefile.am (limited to 'src/liblzma/delta/Makefile.am') diff --git a/src/liblzma/delta/Makefile.am b/src/liblzma/delta/Makefile.am deleted file mode 100644 index 2b98ec4b..00000000 --- a/src/liblzma/delta/Makefile.am +++ /dev/null @@ -1,28 +0,0 @@ -## -## Author: Lasse Collin -## -## This file has been put into the public domain. -## You can do whatever you want with this file. -## - -noinst_LTLIBRARIES = libdelta.la -libdelta_la_CPPFLAGS = \ - -I$(top_srcdir)/src/liblzma/api \ - -I$(top_srcdir)/src/liblzma/common - -libdelta_la_SOURCES = \ - delta_common.c \ - delta_common.h \ - delta_private.h - -if COND_ENCODER_DELTA -libdelta_la_SOURCES += \ - delta_encoder.c \ - delta_encoder.h -endif - -if COND_DECODER_DELTA -libdelta_la_SOURCES += \ - delta_decoder.c \ - delta_decoder.h -endif -- cgit v1.2.3