This prevents the default HOSTCFLAGS from getting clobbered by flags passed to configure on the command line.
Unified · Split
| @@ -2125,8 +2125,6 @@ HOSTCC_E='-E -o $@' · 2124 unmodified lines | |||
| 2125 | HOSTCC_O='-o $@' | 2125 | HOSTCC_O='-o $@' |
| 2126 | HOSTLD_O='-o $@' | 2126 | HOSTLD_O='-o $@' |
| 2127 | 2127 | ||
| 2128 | host_cflags='-O3' | ||
| 2129 | host_cppflags='-D_ISOC99_SOURCE' | ||
| 2130 | host_libs='-lm' | 2128 | host_libs='-lm' |
| 2131 | host_cflags_filter=echo | 2129 | host_cflags_filter=echo |
| 2132 | host_ldflags_filter=echo | 2130 | host_ldflags_filter=echo |
| @@ -3167,8 +3165,10 @@ check_cc -D_LARGEFILE_SOURCE <<EOF && add_cppflags -D_LARGEFILE_SOURCE · 1034 unmodified lines | |||
| 3167 | #include <stdlib.h> | 3165 | #include <stdlib.h> |
| 3168 | EOF | 3166 | EOF |
| 3169 | 3167 | ||
| 3168 | add_host_cppflags -D_ISOC99_SOURCE | ||
| 3170 | check_host_cflags -std=c99 | 3169 | check_host_cflags -std=c99 |
| 3171 | check_host_cflags -Wall | 3170 | check_host_cflags -Wall |
| 3171 | check_host_cflags -O3 | ||
| 3172 | 3172 | ||
| 3173 | check_64bit(){ | 3173 | check_64bit(){ |
| 3174 | arch32=$1 | 3174 | arch32=$1 |