* [PATCH rebase] binutils: Fix elf2flt compile on more modern systems
@ 2014-12-05 14:23 Solomon Peachy
2014-12-05 21:10 ` Bryan Hundven
0 siblings, 1 reply; 3+ messages in thread
From: Solomon Peachy @ 2014-12-05 14:23 UTC (permalink / raw)
To: crossgcc; +Cc: Solomon Peachy
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>
---
scripts/build/binutils/binutils.sh | 1 +
1 file changed, 1 insertion(+)
diff --git a/scripts/build/binutils/binutils.sh b/scripts/build/binutils/binutils.sh
index b6207be..c935f8d 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} \
--
1.9.3
--
For unsubscribe information see http://sourceware.org/lists.html#faq
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH rebase] binutils: Fix elf2flt compile on more modern systems
2014-12-05 14:23 [PATCH rebase] binutils: Fix elf2flt compile on more modern systems Solomon Peachy
@ 2014-12-05 21:10 ` Bryan Hundven
0 siblings, 0 replies; 3+ messages in thread
From: Bryan Hundven @ 2014-12-05 21:10 UTC (permalink / raw)
To: Solomon Peachy; +Cc: crossgcc maillist
Solomon,
On Fri, Dec 5, 2014 at 6:23 AM, Solomon Peachy <pizza@shaftnet.org> wrote:
> 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>
> ---
> scripts/build/binutils/binutils.sh | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/scripts/build/binutils/binutils.sh b/scripts/build/binutils/binutils.sh
> index b6207be..c935f8d 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} \
> --
> 1.9.3
Accepted!
Thanks,
-Bryan
--
For unsubscribe information see http://sourceware.org/lists.html#faq
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH rebase] binutils: Fix elf2flt compile on more modern systems
@ 2014-12-05 14:21 Solomon Peachy
0 siblings, 0 replies; 3+ messages in thread
From: Solomon Peachy @ 2014-12-05 14:21 UTC (permalink / raw)
To: crossgcc maillist; +Cc: Solomon Peachy
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.
---
scripts/build/binutils/binutils.sh | 1 +
1 file changed, 1 insertion(+)
diff --git a/scripts/build/binutils/binutils.sh b/scripts/build/binutils/binutils.sh
index b6207be..c935f8d 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} \
--
1.9.3
--
For unsubscribe information see http://sourceware.org/lists.html#faq
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-12-05 21:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-05 14:23 [PATCH rebase] binutils: Fix elf2flt compile on more modern systems Solomon Peachy
2014-12-05 21:10 ` Bryan Hundven
-- strict thread matches above, loose matches on Subject: below --
2014-12-05 14:21 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).