[PATCH] Configure: always test with provided C compiler options
Piotr Sikora
piotr.sikora at frickle.com
Thu May 2 21:33:07 UTC 2024
# HG changeset patch
# User Piotr Sikora <piotr at aviatrix.com>
# Date 1714589692 0
# Wed May 01 18:54:52 2024 +0000
# Node ID df39b5d3c3a0c670f3d94e623351b6c659f5be84
# Parent 49dce50fad40bf09db81ca2a35983ecd7b740e43
Configure: always test with provided C compiler options.
Previously, build in auto/include didn't use C compiler options,
which didn't allow using a custom sysroot.
While there, update auto/types/uintptr_t to match others.
Signed-off-by: Piotr Sikora <piotr at aviatrix.com>
diff -r 49dce50fad40 -r df39b5d3c3a0 auto/include
--- a/auto/include Tue Apr 16 18:29:59 2024 +0400
+++ b/auto/include Wed May 01 18:54:52 2024 +0000
@@ -27,7 +27,8 @@
END
-ngx_test="$CC -o $NGX_AUTOTEST $NGX_AUTOTEST.c"
+ngx_test="$CC $CC_TEST_FLAGS $CC_AUX_FLAGS \
+ -o $NGX_AUTOTEST $NGX_AUTOTEST.c $NGX_LD_OPT $ngx_feature_libs"
eval "$ngx_test >> $NGX_AUTOCONF_ERR 2>&1"
diff -r 49dce50fad40 -r df39b5d3c3a0 auto/types/uintptr_t
--- a/auto/types/uintptr_t Tue Apr 16 18:29:59 2024 +0400
+++ b/auto/types/uintptr_t Wed May 01 18:54:52 2024 +0000
@@ -27,7 +27,7 @@
END
ngx_test="$CC $CC_TEST_FLAGS $CC_AUX_FLAGS \
- -o $NGX_AUTOTEST $NGX_AUTOTEST.c $NGX_LD_OPT"
+ -o $NGX_AUTOTEST $NGX_AUTOTEST.c $NGX_LD_OPT $ngx_feature_libs"
eval "$ngx_test >> $NGX_AUTOCONF_ERR 2>&1"
More information about the nginx-devel
mailing list