mirror of
				git://git.openwrt.org/openwrt/openwrt.git
				synced 2025-11-03 14:34:27 -05:00 
			
		
		
		
	Switched to xz archives for smaller size. Removed upstreamed patches. Reorganized Makefile a little bit for clarity. Build/Prepare is not useful anymore. Upstream converted the file to LF. Refreshed config. Removed -ansi option from the original CFLAGS as this was causing long long support to be missing. Removed fPIC. We have the macro $(FPIC) already used. No point in setting fpic and fPIC together. Removed pedantic -Wlong-long warnings as they are not useful. Removed -std=gnu++98. Not only is it unnecessary (it compiles against all standards), it actually results in a size increase. 75843 vs. 75222 (gcc in OpenWrt defaults to g++14). Added --gc-sections to linker flags to reduce size: 72653 vs 75222. Removed warn linker options. They have been upstreamed. Tested on Archer C7v2 and GnuBee PC1. Signed-off-by: Rosen Penev <rosenp@gmail.com>
		
			
				
	
	
		
			14 lines
		
	
	
		
			480 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			480 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
--- a/Rules.mak
 | 
						|
+++ b/Rules.mak
 | 
						|
@@ -200,10 +200,6 @@ $(eval $(call check-gxx-var,-std=gnu++14))
 | 
						|
 $(eval $(call check-gxx-var,-Wno-sized-deallocation))
 | 
						|
 $(eval $(call check-gxx-var,-Wno-tautological-compare))
 | 
						|
 
 | 
						|
-# Add a bunch of extra pedantic annoyingly strict checks
 | 
						|
-XWARNINGS=$(call qstrip,$(UCLIBCXX_WARNINGS)) -Wno-trigraphs -pedantic
 | 
						|
-CPU_CFLAGS=$(call qstrip,$(CPU_CFLAGS-y))
 | 
						|
-
 | 
						|
 # Some nice CFLAGS to work with
 | 
						|
 GEN_CFLAGS:=-fno-builtin
 | 
						|
 CFLAGS:=$(XWARNINGS) $(CPU_CFLAGS)
 |