* [Buildroot] [PATCH] toolchain: have check_glibc to search deeper for ld-linux
@ 2012-10-12 20:25 Jean-Mickael Guerin
2012-10-13 9:35 ` Arnout Vandecappelle
2012-10-20 19:06 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Jean-Mickael Guerin @ 2012-10-12 20:25 UTC (permalink / raw)
To: buildroot
ld-linux*.so may not be present in lib/ directory, it could be
in lib32 and/or lib64 only. But check_glibc reports
"Incorrect selection of the C library" in this case, which is
not true.
Fixed by extending the search to SYSROOT/*/*.
Signed-off-by: Jean-Mickael Guerin <jean-mickael.guerin@6wind.com>
---
toolchain/helpers.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/toolchain/helpers.mk b/toolchain/helpers.mk
index d5ab91b..497cfff 100644
--- a/toolchain/helpers.mk
+++ b/toolchain/helpers.mk
@@ -196,7 +196,7 @@ check_glibc_feature = \
#
check_glibc = \
SYSROOT_DIR="$(strip $1)"; \
- if test `find $${SYSROOT_DIR}/lib/ -maxdepth 1 -name 'ld-linux*.so.*' -o -name 'ld.so.*' | wc -l` -eq 0 ; then \
+ if test `find $${SYSROOT_DIR}/ -maxdepth 2 -name 'ld-linux*.so.*' -o -name 'ld.so.*' | wc -l` -eq 0 ; then \
echo "Incorrect selection of the C library"; \
exit -1; \
fi; \
--
1.7.12
^ permalink raw reply related [flat|nested] 3+ messages in thread* [Buildroot] [PATCH] toolchain: have check_glibc to search deeper for ld-linux
2012-10-12 20:25 [Buildroot] [PATCH] toolchain: have check_glibc to search deeper for ld-linux Jean-Mickael Guerin
@ 2012-10-13 9:35 ` Arnout Vandecappelle
2012-10-20 19:06 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Arnout Vandecappelle @ 2012-10-13 9:35 UTC (permalink / raw)
To: buildroot
On 12/10/12 22:25, Jean-Mickael Guerin wrote:
> ld-linux*.so may not be present in lib/ directory, it could be
> in lib32 and/or lib64 only. But check_glibc reports
> "Incorrect selection of the C library" in this case, which is
> not true.
> Fixed by extending the search to SYSROOT/*/*.
>
> Signed-off-by: Jean-Mickael Guerin<jean-mickael.guerin@6wind.com>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
> ---
> toolchain/helpers.mk | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/toolchain/helpers.mk b/toolchain/helpers.mk
> index d5ab91b..497cfff 100644
> --- a/toolchain/helpers.mk
> +++ b/toolchain/helpers.mk
> @@ -196,7 +196,7 @@ check_glibc_feature = \
> #
> check_glibc = \
> SYSROOT_DIR="$(strip $1)"; \
> - if test `find $${SYSROOT_DIR}/lib/ -maxdepth 1 -name 'ld-linux*.so.*' -o -name 'ld.so.*' | wc -l` -eq 0 ; then \
> + if test `find $${SYSROOT_DIR}/ -maxdepth 2 -name 'ld-linux*.so.*' -o -name 'ld.so.*' | wc -l` -eq 0 ; then \
Maybe it's better to search in /lib*/ ? Not that it really matters that much.
Regards,
Arnout
> echo "Incorrect selection of the C library"; \
> exit -1; \
> fi; \
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286540
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
^ permalink raw reply [flat|nested] 3+ messages in thread* [Buildroot] [PATCH] toolchain: have check_glibc to search deeper for ld-linux
2012-10-12 20:25 [Buildroot] [PATCH] toolchain: have check_glibc to search deeper for ld-linux Jean-Mickael Guerin
2012-10-13 9:35 ` Arnout Vandecappelle
@ 2012-10-20 19:06 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2012-10-20 19:06 UTC (permalink / raw)
To: buildroot
>>>>> "Jean-Mickael" == Jean-Mickael Guerin <jean-mickael.guerin@6wind.com> writes:
Jean-Mickael> ld-linux*.so may not be present in lib/ directory, it could be
Jean-Mickael> in lib32 and/or lib64 only. But check_glibc reports
Jean-Mickael> "Incorrect selection of the C library" in this case, which is
Jean-Mickael> not true.
Jean-Mickael> Fixed by extending the search to SYSROOT/*/*.
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-10-20 19:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-12 20:25 [Buildroot] [PATCH] toolchain: have check_glibc to search deeper for ld-linux Jean-Mickael Guerin
2012-10-13 9:35 ` Arnout Vandecappelle
2012-10-20 19:06 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox