mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
configure.ac: Use LIBS rather than LDFLAGS to add -ldl to dladdr check
ec8ebff"Check for dladdr()" erroneously uses LDFLAGS rather than LIBS to add -ldl to the dladdr check. Replace the workaround in39a4cc4of explicitly checking in libdl, with a more correct approach of using LIBS. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> Tested-by: Pali Rohár <pali.rohar@gmail.com> Cc: "10.2" <mesa-stable@lists.freedesktop.org>
This commit is contained in:
parent
7b4b60b7e5
commit
a2e1dc0cce
1 changed files with 4 additions and 3 deletions
|
|
@ -535,9 +535,10 @@ AC_CHECK_FUNC([dlopen], [DEFINES="$DEFINES -DHAVE_DLOPEN"],
|
|||
AC_SUBST([DLOPEN_LIBS])
|
||||
|
||||
dnl Check if that library also has dladdr
|
||||
AC_CHECK_FUNC([dladdr], [DEFINES="$DEFINES -DHAVE_DLADDR"],
|
||||
[AC_CHECK_LIB([dl], [dladdr],
|
||||
[DEFINES="$DEFINES -DHAVE_DLADDR"])])
|
||||
save_LIBS="$LIBS"
|
||||
LIBS="$LIBS $DLOPEN_LIBS"
|
||||
AC_CHECK_FUNCS([dladdr])
|
||||
LIBS="$save_LIBS"
|
||||
|
||||
case "$host_os" in
|
||||
darwin*|mingw*)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue