missing custom CFLAGS when testing for memrchr availability default tip

Thu, 02 Oct 2025 21:31:52 +0200

author
Mike Becker <universe@uap-core.de>
date
Thu, 02 Oct 2025 21:31:52 +0200
changeset 1414
597cf869e8bc
parent 1413
c5a225d7228c

missing custom CFLAGS when testing for memrchr availability

configure file | annotate | diff | comparison | revisions
make/project.xml file | annotate | diff | comparison | revisions
--- a/configure	Thu Oct 02 21:21:45 2025 +0200
+++ b/configure	Thu Oct 02 21:31:52 2025 +0200
@@ -507,7 +507,7 @@
     # dependency memrchr
     while true
     do
-        if $TOOLCHAIN_CC -o /dev/null make/test_memrchr.c > /dev/null 2>&1 ; then
+        if $TOOLCHAIN_CC $CFLAGS -o /dev/null make/test_memrchr.c > /dev/null 2>&1 ; then
             :
         else
             break
@@ -521,7 +521,7 @@
     # dependency memrchr
     while true
     do
-        if $TOOLCHAIN_CC -o /dev/null -D_GNU_SOURCE make/test_memrchr.c > /dev/null 2>&1 ; then
+        if $TOOLCHAIN_CC $CFLAGS -o /dev/null -D_GNU_SOURCE make/test_memrchr.c > /dev/null 2>&1 ; then
             :
         else
             break
--- a/make/project.xml	Thu Oct 02 21:21:45 2025 +0200
+++ b/make/project.xml	Thu Oct 02 21:31:52 2025 +0200
@@ -90,12 +90,12 @@
     </dependency>
 
     <dependency name="memrchr">
-        <test>$TOOLCHAIN_CC -o /dev/null make/test_memrchr.c</test>
+        <test>$TOOLCHAIN_CC $CFLAGS -o /dev/null make/test_memrchr.c</test>
         <cflags>-DWITH_MEMRCHR</cflags>
     </dependency>
 
     <dependency name="memrchr">
-        <test>$TOOLCHAIN_CC -o /dev/null -D_GNU_SOURCE make/test_memrchr.c</test>
+        <test>$TOOLCHAIN_CC $CFLAGS -o /dev/null -D_GNU_SOURCE make/test_memrchr.c</test>
         <cflags>-DWITH_MEMRCHR -DMEMRCHR_NEED_GNU</cflags>
     </dependency>
 

mercurial