mirror of
				git://git.openwrt.org/openwrt/openwrt.git
				synced 2025-10-31 05:54:26 -04:00 
			
		
		
		
	if gcc not linker whith this LDFLAGS, "file libbz2.so.1.0.8" will recognize as pie executable ELF file ( which should be shared object). this because the file command version before 5.36 not recognize correctly. Signed-off-by: leo chung <gewalalb@gmail.com>
		
			
				
	
	
		
			12 lines
		
	
	
		
			395 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			395 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
| --- a/Makefile-libbz2_so
 | |
| +++ b/Makefile-libbz2_so
 | |
| @@ -35,7 +35,7 @@ OBJS= blocksort.o  \
 | |
|        bzlib.o
 | |
|  
 | |
|  all: $(OBJS)
 | |
| -	$(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.8 $(OBJS)
 | |
| +	$(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 $(LDFLAGS) -o libbz2.so.1.0.8 $(OBJS)
 | |
|  	$(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.8
 | |
|  	rm -f libbz2.so.1.0
 | |
|  	ln -s libbz2.so.1.0.8 libbz2.so.1.0
 |