Skip to content

Commit

Permalink
Fix b64_ntop -lresolv detection for -fsanitize=address
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Ortmann committed Nov 28, 2023
1 parent 322bddb commit 9e8a899
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aclocal.m4
Original file line number Diff line number Diff line change
Expand Up @@ -313,12 +313,15 @@ AC_DEFUN([EGG_FUNC_B64_NTOP],
# Check for b64_ntop. If we have b64_ntop, we assume b64_pton as well.
AC_MSG_CHECKING(for b64_ntop)
OLD_CFLAGS="$CFLAGS"
CFLAGS+="$CFLAGS -fno-sanitize=address"
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
#include <sys/types.h>
#include <netinet/in.h>
#include <resolv.h>
]], [[b64_ntop(NULL, 0, NULL, 0);]])],[found_b64_ntop=yes],[found_b64_ntop=no
])
CFLAGS=$OLD_CFLAGS
if test "x$found_b64_ntop" = xno; then
AC_MSG_RESULT(no)
Expand Down

0 comments on commit 9e8a899

Please sign in to comment.