Skip to content

Commit

Permalink
Fix linking against libiphlpapi in i686 mingw-w64 builds
Browse files Browse the repository at this point in the history
Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
  • Loading branch information
MoSal committed Jun 21, 2024
1 parent c3469a7 commit b0e7e9f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,10 @@ AM_CONDITIONAL(BUILD_WITH_NO_UNDEFINED, test x$bwin32 = xtrue || test x$cygwin =

if test "$bwin32" = "true"; then
AC_CHECK_LIB([ws2_32], [main])
AC_CHECK_LIB([iphlpapi], [GetAdaptersAddresses])
# Check fails on i686 because stdcall decorators are used for GetAdaptersAddresses there
#AC_CHECK_LIB([iphlpapi], [GetAdaptersAddresses])
# Just force-pass the test
AC_CHECK_LIB([iphlpapi], [main])
fi

dnl Checks for typedefs, structures, and compiler characteristics.
Expand Down

0 comments on commit b0e7e9f

Please sign in to comment.