Skip to content

Commit

Permalink
build: use feature test macros for memrchr configure check
Browse files Browse the repository at this point in the history
Previously these were only used to compile the main project source,
resulting in inconsistencies between the feature detection and actual
usage.
  • Loading branch information
martanne committed Nov 13, 2020
1 parent 01eef9f commit d6b0d6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d6b0d6e

Please sign in to comment.