Skip to content
Snippets Groups Projects
Commit 123fcba7 authored by ip1981's avatar ip1981 Committed by Herbert Valerio Riedel
Browse files

Do not blindly add libdl to extra libraries

On some systems dlopen() is available without libdl (illumos, solaris).
Sometimes libdl.so cannot be loaded by runtime linker, see
https://ghc.haskell.org/trac/ghc/ticket/8713

Closes #8
parent 7222765c
No related branches found
No related tags found
No related merge requests found
......@@ -186,7 +186,7 @@ else
fi
# Avoid adding dl if absent or unneeded
AC_CHECK_LIB(dl, dlopen, [EXTRA_LIBS="$EXTRA_LIBS dl"])
AC_SEARCH_LIBS([dlopen], [dl], [EXTRA_LIBS="$EXTRA_LIBS $ac_lib"])
# -{l,}pthread goo
AC_CANONICAL_TARGET
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment