Re: [PATCH 1/6] dlopen is used by newer binutils, so check for it
Greg Ungerer <[email protected]> Mon, 4 Jan 2016 21:40:25 +1000
| Newsgroups | gmane.linux.uclinux.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Waldemar, On 31/12/15 09:55, Waldemar Brodkorb wrote: > Add a check for dlopen to configure.ac > > Signed-off-by: Waldemar Brodkorb <[email protected]> > --- > 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 [email protected] http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by [email protected] To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev