Hi Waldemar,

On 31/12/15 09:55, Waldemar Brodkorb wrote:
Add a check for dlopen to configure.ac

Signed-off-by: Waldemar Brodkorb <w...@uclibc-ng.org>
---
  configure.ac |    1 +
  1 file changed, 1 insertion(+)

diff --git a/configure.ac b/configure.ac
index 4e7df5a..adf5883 100644
--- a/configure.ac
+++ b/configure.ac
@@ -192,6 +192,7 @@ dnl redirect some functions to the system symbols, but 
other local symbols
  dnl come from libiberty/libbfd.
  dnl int getopt(int, char * const [], const char *) __asm("_" "getopt" 
"$UNIX2003");
  AC_CHECK_LIB(c, malloc, LIBS="-lc $LIBS")
+AC_CHECK_LIB(dl, dlopen)

Could you successfully compile with just this?

I have to use:

  AC_CHECK_LIB(dl, dlopen, LIBS="$LIBS -ldl")

to get the correct lib ordering at link time. Otherwise the
linking of elf2flt fails for me (testing with m68k).

Regards
Greg

_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to