Skip to content

Commit

Permalink
Portability: remove explicit check for libdl (#1963)
Browse files Browse the repository at this point in the history
OpenBSD does not have libdl, as it has dlopen() in libc.
It is not really needed, and force-requiring the presence of libdl
causes ./configure to fail on openbsd:

    checking for dlopen in -ldl... no
    configure: error: Required library 'dl' not found
  • Loading branch information
kinkie authored and squid-anubis committed Dec 16, 2024
1 parent e9eb590 commit 8b31858
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -403,13 +403,6 @@ AS_IF([test "x$squid_opt_aufs_threads" != "x"],[
[Defines how many threads aufs uses for I/O])
])

## TODO check if this is necessary, LT_INIT does these checks
SQUID_AUTO_LIB(dl,[dynamic linking],[LIBDL])
SQUID_CHECK_LIB_WORKS(dl,[
LDFLAGS="$LIBDL_PATH $LDFLAGS"
AC_CHECK_LIB(dl, dlopen,[LIBDL_LIBS="-ldl"])
])

AC_DEFUN([LIBATOMIC_CHECKER],[
AC_MSG_CHECKING(whether linking $1 -latomic works)
AC_LINK_IFELSE([
Expand Down

0 comments on commit 8b31858

Please sign in to comment.