aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2020-11-13 11:08:05 +0100
committerMarc André Tanner <mat@brain-dump.org>2020-11-13 11:08:05 +0100
commitd6b0d6e0e7898ab4fba974b9e0dc3e78b6252169 (patch)
tree03f316e8dc7f86830d28889ad3d1d86d5f7c6294
parent01eef9f87b72b0c1473672ca17592077b5af1126 (diff)
downloadvis-d6b0d6e0e7898ab4fba974b9e0dc3e78b6252169.tar.gz
vis-d6b0d6e0e7898ab4fba974b9e0dc3e78b6252169.tar.xz
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.
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
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