mirror of
				git://git.openwrt.org/openwrt/openwrt.git
				synced 2025-10-31 05:54:26 -04:00 
			
		
		
		
	When using alpine as host, things start to fail. Lets pull in the upstream alpine patches to make things work. This should not affect other hosts. Note, that Alpine has the '_GNU_SOURCE' define in the APKBUILD file, but here we add this flag to the needed fix flags patch, which does similar things too. Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
		
			
				
	
	
		
			28 lines
		
	
	
		
			852 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			852 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
| --- a/CPP/7zip/7zip_gcc.mak
 | |
| +++ b/CPP/7zip/7zip_gcc.mak
 | |
| @@ -18,13 +18,13 @@ PROGPATH_STATIC = $(O)/$(PROG)s
 | |
|  
 | |
|  
 | |
|  ifneq ($(CC), xlc)
 | |
| -CFLAGS_WARN_WALL = -Wall -Werror -Wextra
 | |
| +CFLAGS_WARN_WALL = -Wall -Wextra
 | |
|  endif
 | |
|  
 | |
|  # for object file
 | |
|  CFLAGS_BASE_LIST = -c
 | |
|  # CFLAGS_BASE_LIST = -S
 | |
| -CFLAGS_BASE = -O2 $(CFLAGS_BASE_LIST) $(CFLAGS_WARN_WALL) $(CFLAGS_WARN) \
 | |
| +CFLAGS_BASE = $(CFLAGS_BASE_LIST) $(CFLAGS_WARN_WALL) $(CFLAGS_WARN) -D_GNU_SOURCE \
 | |
|   -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \
 | |
|   -fPIC
 | |
|  
 | |
| @@ -192,7 +192,7 @@ all: $(O) $(PROGPATH) $(STATIC_TARGET)
 | |
|  $(O):
 | |
|  	$(MY_MKDIR) $(O)
 | |
|  
 | |
| -LFLAGS_ALL = -s $(MY_ARCH_2) $(LDFLAGS) $(LD_arch) $(OBJS) $(MY_LIBS) $(LIB2)
 | |
| +LFLAGS_ALL = $(MY_ARCH_2) $(LDFLAGS) $(LD_arch) $(OBJS) $(MY_LIBS) $(LIB2)
 | |
|  $(PROGPATH): $(OBJS)
 | |
|  	$(CXX) -o $(PROGPATH) $(LFLAGS_ALL)
 | |
|  
 |