* [crosstool-ng][patch] Fix elf2flt compile on modern systems
@ 2014-03-06 18:48 Solomon Peachy
0 siblings, 0 replies; only message in thread
From: Solomon Peachy @ 2014-03-06 18:48 UTC (permalink / raw)
To: crossgcc
[-- Attachment #1.1: Type: text/plain, Size: 551 bytes --]
Without this fix, elf2flt will blow up complaining that it can't resolve
dlopen() and its friends. One has to explicitly pass '-ldl' onto the
final linking command line.
Incidentally, the elf2flt CVS host has been down for some time now;
There's a git repo we could pull from hosted on the buildroot site, but
I don't know how up-to-date it is.
Cheers,
- Solomon
--
Solomon Peachy pizza at shaftnet dot org
Delray Beach, FL ^^ (email/xmpp) ^^
Quidquid latine dictum sit, altum viditur.
[-- Attachment #1.2: fix-ctng.diff --]
[-- Type: text/plain, Size: 870 bytes --]
diff --git a/crosstool-ng/scripts/build/binutils/binutils.sh b/crosstool-ng/scripts/build/binutils/binutils.sh
index 059566d..741ed69 100644
--- a/crosstool-ng/scripts/build/binutils/binutils.sh
+++ b/crosstool-ng/scripts/build/binutils/binutils.sh
@@ -288,7 +288,8 @@ do_elf2flt_backend() {
CT_DoLog EXTRA "Configuring elf2flt"
CT_DoExecLog CFG \
CFLAGS="${cflags}" \
- LDFLAGS="${ldflags} -ldl" \
+ LDFLAGS="${ldflags}" \
+ LIBS="-ldl" \
"${CT_SRC_DIR}/elf2flt-${CT_ELF2FLT_VERSION}/configure" \
--build=${CT_BUILD} \
--host=${host} \
[-- Attachment #2: Type: application/pgp-signature, Size: 155 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-03-06 18:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-06 18:48 [crosstool-ng][patch] Fix elf2flt compile on modern systems Solomon Peachy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).