From d6b0d6e0e7898ab4fba974b9e0dc3e78b6252169 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Fri, 13 Nov 2020 11:08:05 +0100 Subject: build: use feature test macros for memrchr configure check Previously these were only used to compile the main project source, resulting in inconsistencies between the feature detection and actual usage. --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 4d8f7b1..37498ff 100755 --- a/configure +++ b/configure @@ -619,7 +619,7 @@ int main(int argc, char *argv[]) { } EOF -if $CC $CFLAGS "$tmpc" $LDFLAGS -o "$tmpo" >/dev/null 2>&1; then +if $CC $CFLAGS $CFLAGS_STD "$tmpc" $LDFLAGS -o "$tmpo" >/dev/null 2>&1; then HAVE_MEMRCHR=1 printf "%s\n" "yes" else -- cgit v1.2.3