mirror of
				https://git.kernel.org/pub/scm/network/wireless/iwd.git
				synced 2025-10-31 04:57:25 +01:00 
			
		
		
		
	configure.ac: fix bashism
configure scripts need to be runnable with a POSIX-compliant /bin/sh. On many (but not all!) systems, /bin/sh is provided by Bash, so errors like this aren't spotted. Notably Debian defaults to /bin/sh provided by dash which doesn't tolerate such bashisms as '+='. This retains compatibility with bash. Just copy the expanded append like we do on the line above. Fixes warnings like: ``` ./configure: 13352: CFLAGS+= -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2: not found ```
This commit is contained in:
		
							parent
							
								
									e89ba32d30
								
							
						
					
					
						commit
						ba9717d445
					
				| @ -44,7 +44,7 @@ AC_ARG_ENABLE(optimization, AS_HELP_STRING([--disable-optimization], | ||||
| 
 | ||||
| if (test "${enable_optimization}" != "no"); then | ||||
| 	CFLAGS="$CFLAGS -O2" | ||||
| 	CFLAGS+=" -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2" | ||||
| 	CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2" | ||||
| fi | ||||
| 
 | ||||
| AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug], | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Sam James
						Sam James