we need "$CC -E -" as cpp, not "$CC -E"
found on Linux ecce 2.0.38 #1 Wed Jul 26 22:05:46 2000 i686 unknown Reading specs from /usr/lib/gcc-lib/i386-linux/2.7.2.3/specs gcc version 2.7.2.3 Note: during the entire compile, there are warnings like | gcc: unrecognized option `-std=gnu99' but these won't trigger -Werror since they are in the driver, not in the front-end, so they are harmless, I guess. (I don't know of a way to make them vanish, either.)
This commit is contained in:
		
							
								
								
									
										4
									
								
								Build.sh
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								Build.sh
									
									
									
									
									
								
							| @@ -1,5 +1,5 @@ | |||||||
| #!/bin/sh | #!/bin/sh | ||||||
| # $MirOS: src/bin/mksh/Build.sh,v 1.126 2007/01/17 21:42:23 tg Exp $ | # $MirOS: src/bin/mksh/Build.sh,v 1.127 2007/01/17 22:35:09 tg Exp $ | ||||||
| #- | #- | ||||||
| # Environment: CC, CFLAGS, CPP, CPPFLAGS, LDFLAGS, LIBS, NOWARN, NROFF | # Environment: CC, CFLAGS, CPP, CPPFLAGS, LDFLAGS, LIBS, NOWARN, NROFF | ||||||
| # With -x (cross compile): TARGET_OS (default: uname -s) | # With -x (cross compile): TARGET_OS (default: uname -s) | ||||||
| @@ -415,7 +415,7 @@ if test 1 = $NEED_MKSH_SIGNAME; then | |||||||
| 	$e ... checking how to run the C Preprocessor | 	$e ... checking how to run the C Preprocessor | ||||||
| 	rm -f x | 	rm -f x | ||||||
| 	save_CPP=$CPP | 	save_CPP=$CPP | ||||||
| 	for i in "$save_CPP" "$CC -E" "cpp" "/usr/libexec/cpp" "/lib/cpp"; do | 	for i in "$save_CPP" "$CC -E -" "cpp" "/usr/libexec/cpp" "/lib/cpp"; do | ||||||
| 		CPP=$i | 		CPP=$i | ||||||
| 		test x"$CPP" = x"false" && continue | 		test x"$CPP" = x"false" && continue | ||||||
| 		( ( echo '#if (23 * 2 - 2) == (fnord + 2)' | 		( ( echo '#if (23 * 2 - 2) == (fnord + 2)' | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user