mirror of
				https://git.tukaani.org/xz.git
				synced 2025-11-03 23:12:57 +00:00 
			
		
		
		
	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 <http://lists.gnu.org/archive/html/libtool/2009-06/msg00070.html> 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.
		
			
				
	
	
		
			48 lines
		
	
	
		
			833 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			48 lines
		
	
	
		
			833 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
##
 | 
						|
## Author: Lasse Collin
 | 
						|
##
 | 
						|
## This file has been put into the public domain.
 | 
						|
## You can do whatever you want with this file.
 | 
						|
##
 | 
						|
 | 
						|
liblzma_la_SOURCES += \
 | 
						|
	simple/simple_coder.c \
 | 
						|
	simple/simple_coder.h \
 | 
						|
	simple/simple_private.h
 | 
						|
 | 
						|
if COND_ENCODER_SIMPLE
 | 
						|
liblzma_la_SOURCES += \
 | 
						|
	simple/simple_encoder.c \
 | 
						|
	simple/simple_encoder.h
 | 
						|
endif
 | 
						|
 | 
						|
if COND_DECODER_SIMPLE
 | 
						|
liblzma_la_SOURCES += \
 | 
						|
	simple/simple_decoder.c \
 | 
						|
	simple/simple_decoder.h
 | 
						|
endif
 | 
						|
 | 
						|
if COND_FILTER_X86
 | 
						|
liblzma_la_SOURCES += simple/x86.c
 | 
						|
endif
 | 
						|
 | 
						|
if COND_FILTER_POWERPC
 | 
						|
liblzma_la_SOURCES += simple/powerpc.c
 | 
						|
endif
 | 
						|
 | 
						|
if COND_FILTER_IA64
 | 
						|
liblzma_la_SOURCES += simple/ia64.c
 | 
						|
endif
 | 
						|
 | 
						|
if COND_FILTER_ARM
 | 
						|
liblzma_la_SOURCES += simple/arm.c
 | 
						|
endif
 | 
						|
 | 
						|
if COND_FILTER_ARMTHUMB
 | 
						|
liblzma_la_SOURCES += simple/armthumb.c
 | 
						|
endif
 | 
						|
 | 
						|
if COND_FILTER_SPARC
 | 
						|
liblzma_la_SOURCES += simple/sparc.c
 | 
						|
endif
 |