]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Portability: remove explicit check for libdl (#1963)
authorFrancesco Chemolli <5175948+kinkie@users.noreply.github.com>
Mon, 16 Dec 2024 14:49:55 +0000 (14:49 +0000)
committerAmos Jeffries <yadij@users.noreply.github.com>
Fri, 31 Jan 2025 07:52:27 +0000 (20:52 +1300)
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

configure.ac

index 05aede6eb867e9b73e626eb338e08d286278d691..465ba34bdab3f1171e52f0ab4f2f4ed315e716f8 100644 (file)
@@ -393,14 +393,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])
-AS_IF([test "x$with_dl" != "xno"],[
-  CXXFLAGS="$LIBDL_CFLAGS $CXXFLAGS"
-  LDFLAGS="$LIBDL_PATH $LDFLAGS"
-  AC_CHECK_LIB(dl, dlopen)
-])
-
 AC_DEFUN([LIBATOMIC_CHECKER],[
   AC_MSG_CHECKING(whether linking $1 -latomic works)
   AC_LINK_IFELSE([