Include -01 in CFLAGS_BUILD when using clang.
This commit is contained in:
		| @@ -1524,8 +1524,11 @@ make_cflags_and_ldflags() { | ||||
|  | ||||
| 		cc_build_is_gcc=`basename "$cc_build" | grep "gcc" 2>/dev/null` | ||||
| 		if [ -n "$cc_build_is_gcc" ]; then | ||||
| 			# Just add -O1 to the tools needed for building. | ||||
| 			# Add -O1 and fortify source to the tools needed for building, on gcc | ||||
| 			CFLAGS_BUILD="$CFLAGS_BUILD -D_FORTIFY_SOURCE=2 -O1" | ||||
| 		elif [ -n "`basename "$cc_build" | grep "clang" 2>/dev/null`" ]; then | ||||
| 			# Add -O1 to the tools needed for building, on clang | ||||
| 			CFLAGS_BUILD="$CFLAGS_BUILD -O1" | ||||
| 		fi | ||||
| 	fi | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jonathan G Rennison
					Jonathan G Rennison