Add -ldl library if needed for dladdr()
It's possible for the dlopen() check to succeed without -ldl, but the dladdr() check fails without it. This happens with GCC's -fsanitize=address.
This commit is contained in:
parent
52631b3368
commit
a8fc92d020
2 changed files with 11 additions and 4 deletions
7
configure
vendored
7
configure
vendored
|
|
@ -33302,7 +33302,7 @@ if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
|
|||
$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
|
||||
|
||||
HAVE_DL_FUNCS=1
|
||||
DL_LINK="-ldl $DL_LINK"
|
||||
DL_LINK="-ldl"
|
||||
|
||||
fi
|
||||
|
||||
|
|
@ -33360,7 +33360,10 @@ fi
|
|||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5
|
||||
$as_echo "$ac_cv_lib_dl_dladdr" >&6; }
|
||||
if test "x$ac_cv_lib_dl_dladdr" = xyes; then :
|
||||
$as_echo "#define HAVE_DLADDR 1" >>confdefs.h
|
||||
|
||||
$as_echo "#define HAVE_DLADDR 1" >>confdefs.h
|
||||
|
||||
DL_LINK="-ldl"
|
||||
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue