This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: build failure, --enable-targets=all vs plugin support


* Alan Modra wrote on Mon, Oct 19, 2009 at 12:36:28PM CEST:
> +case " $enable_targets " in
> +  *" plugin "*)
> +    BFD_LIBADD="$BFD_LIBADD -ldl"
> +    ;;
> +  *" all "*)
> +    if test "$enable_shared" = "yes"; then
> +      BFD_LIBADD="$BFD_LIBADD -ldl"
> +    fi
> +    ;;
> +esac

The addition of -ldl shouldn't be made unconditionally on all systems,
some have the dl* functions in libc and don't have libdl.
GCC/gcc/configure.ac has solved this for more systems, and
libtool.m4:LT_SYS_DLOPEN_SELF for even more systems (but the latter uses
semantics that currently neither GCC nor binutils cope with, so it can
only serve as source to copy from).

It would be a good idea to factor the bits from gcc into a toplevel
config/*.m4 file.

Cheers,
Ralf


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]