diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2014-12-05 09:23:13 -0500 |
---|---|---|
committer | Bryan Hundven <bryanhundven@gmail.com> | 2014-12-05 13:09:51 -0800 |
commit | 4125a795890061ff9c1fe51c19c3de59b091268d (patch) | |
tree | 5bb7c074a667a041fcbb01ee8584942e4dac0ab2 /scripts/build/binutils/binutils.sh | |
parent | f65ecce4baf15f9f43c2642743eada326eba63d2 (diff) | |
download | crosstool-ng-4125a795890061ff9c1fe51c19c3de59b091268d.tar.gz crosstool-ng-4125a795890061ff9c1fe51c19c3de59b091268d.tar.bz2 crosstool-ng-4125a795890061ff9c1fe51c19c3de59b091268d.zip |
binutils: Fix elf2flt compile on more modern systems
Without this fix, elf2flt will blow up complaining that it can't resolve
dlopen() and friends. One has to explicitly pass '-ldl' on the final
linking command line, because the system linker is not resolving
indirect dependent shared libraries.
I've needed to this patch for several years on Fedora systems.
Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
Diffstat (limited to 'scripts/build/binutils/binutils.sh')
-rw-r--r-- | scripts/build/binutils/binutils.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/build/binutils/binutils.sh b/scripts/build/binutils/binutils.sh index a0d9208d..79a1addb 100644 --- a/scripts/build/binutils/binutils.sh +++ b/scripts/build/binutils/binutils.sh @@ -291,6 +291,7 @@ do_elf2flt_backend() { CT_DoExecLog CFG \ CFLAGS="${cflags}" \ LDFLAGS="${ldflags}" \ + LIBS="-ldl" \ "${CT_SRC_DIR}/elf2flt-${CT_ELF2FLT_VERSION}/configure" \ --build=${CT_BUILD} \ --host=${host} \ |