mirror of
				https://github.com/GrapheneOS/hardened_malloc.git
				synced 2025-11-01 08:36:33 +01:00 
			
		
		
		
	reorganize compiler switches
This commit is contained in:
		
							parent
							
								
									2250130c53
								
							
						
					
					
						commit
						cd9b875297
					
				
					 2 changed files with 4 additions and 4 deletions
				
			
		|  | @ -1,10 +1,10 @@ | ||||||
| common_cflags = [ | common_cflags = [ | ||||||
|  |     "-pipe", | ||||||
|     "-O3", |     "-O3", | ||||||
|     //"-flto", |     //"-flto", | ||||||
|     "-fPIC", |     "-fPIC", | ||||||
|     "-fvisibility=hidden", |     "-fvisibility=hidden", | ||||||
|     //"-fno-plt", |     //"-fno-plt", | ||||||
|     "-pipe", |  | ||||||
|     "-Wall", |     "-Wall", | ||||||
|     "-Wextra", |     "-Wextra", | ||||||
|     "-Wcast-align", |     "-Wcast-align", | ||||||
|  |  | ||||||
							
								
								
									
										6
									
								
								Makefile
									
										
									
									
									
								
							
							
						
						
									
										6
									
								
								Makefile
									
										
									
									
									
								
							|  | @ -18,9 +18,9 @@ $(shell $(CC) $(if $(filter clang,$(CC)),-Werror=unknown-warning-option) -E $1 - | ||||||
| endef | endef | ||||||
| 
 | 
 | ||||||
| CPPFLAGS := $(CPPFLAGS) -D_GNU_SOURCE -I include | CPPFLAGS := $(CPPFLAGS) -D_GNU_SOURCE -I include | ||||||
| SHARED_FLAGS := -O3 -flto -fPIC -fvisibility=hidden -fno-plt \
 | SHARED_FLAGS := -pipe -O3 -flto -fPIC -fvisibility=hidden -fno-plt \
 | ||||||
|     $(call safe_flag,-fstack-clash-protection) -fstack-protector-strong -pipe -Wall -Wextra \
 |     $(call safe_flag,-fstack-clash-protection) -fstack-protector-strong \
 | ||||||
|     $(call safe_flag,-Wcast-align=strict,-Wcast-align) -Wcast-qual -Wwrite-strings |     -Wall -Wextra $(call safe_flag,-Wcast-align=strict,-Wcast-align) -Wcast-qual -Wwrite-strings | ||||||
| 
 | 
 | ||||||
| ifeq ($(CONFIG_WERROR),true) | ifeq ($(CONFIG_WERROR),true) | ||||||
|     SHARED_FLAGS += -Werror |     SHARED_FLAGS += -Werror | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue