Dash:
[t2-trunk.git] / package / network / nginx / 300-crosscompile_ccflags.patch
blob4a06a769699ce4ba7225210a10eb369836e4978f
1 --- a/auto/endianness
2 +++ b/auto/endianness
3 @@ -21,7 +21,7 @@ int main() {
5 END
7 -ngx_test="$CC $CC_TEST_FLAGS $CC_AUX_FLAGS \
8 +ngx_test="$CC $NGX_CC_OPT $CC_TEST_FLAGS $CC_AUX_FLAGS \
9 -o $NGX_AUTOTEST $NGX_AUTOTEST.c $NGX_LD_OPT $ngx_feature_libs"
11 eval "$ngx_test >> $NGX_AUTOCONF_ERR 2>&1"
12 --- a/auto/feature
13 +++ b/auto/feature
14 @@ -39,7 +39,7 @@ int main() {
15 END
18 -ngx_test="$CC $CC_TEST_FLAGS $CC_AUX_FLAGS $ngx_feature_inc_path \
19 +ngx_test="$CC $NGX_CC_OPT $CC_TEST_FLAGS $CC_AUX_FLAGS $ngx_feature_inc_path \
20 -o $NGX_AUTOTEST $NGX_AUTOTEST.c $NGX_TEST_LD_OPT $ngx_feature_libs"
22 ngx_feature_inc_path=
23 --- a/auto/include
24 +++ b/auto/include
25 @@ -27,7 +27,7 @@ int main() {
26 END
29 -ngx_test="$CC -o $NGX_AUTOTEST $NGX_AUTOTEST.c"
30 +ngx_test="$CC $NGX_CC_OPT -o $NGX_AUTOTEST $NGX_AUTOTEST.c"
32 eval "$ngx_test >> $NGX_AUTOCONF_ERR 2>&1"