Skip to content

Commit

Permalink
build system: use AC_SEARCH_LIBS rather than assuming -ldl is needed.
Browse files Browse the repository at this point in the history
On a number of operating systems, such as the *BSD, the dlopen() function
is present in the standard C library, not in a separate libdl library.

Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
Flameeyes authored and gregkh committed Aug 31, 2010
1 parent a120a11 commit 7fe9c95
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ PKG_CHECK_MODULES(LIBPCRE, libpcre)
PKG_CHECK_MODULES([LIBCURL], [libcurl])
PKG_CHECK_MODULES([XML], [libxml-2.0])

# explicitly link DSOs
LIBS="$LIBS -ldl"

AC_SEARCH_LIBS([dlopen], [dl])

dnl Checks for header files.
#AC_CHECK_HEADERS([fcntl.h stddef.h stdlib.h string.h unistd.h])
Expand Down

0 comments on commit 7fe9c95

Please sign in to comment.