Welcome! Log In Create A New Profile

Advanced

[PATCH] Configure: always test with provided C compiler options

Piotr Sikora via nginx-devel
May 02, 2024 05:34PM
# HG changeset patch
# User Piotr Sikora <piotr@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@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"

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH] Configure: always test with provided C compiler options

Piotr Sikora via nginx-devel 257 May 02, 2024 05:34PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 247
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready