|
From: | Christian JULLIEN |
Subject: | [Tinycc-devel] RE :Re: test failure on Linux |
Date: | Thu, 14 Feb 2013 18:05:24 +0100 (CET) |
----- Message d'origine -----
De : "grischka" <address@hidden>
Date jeu. 14/02/2013 17:59 (GMT +01:00)
À : "Thomas Preud'homme" <address@hidden>
Cc : "address@hidden" <address@hidden>
Objet : Re: [Tinycc-devel] test failure on Linux
Thomas Preud'homme wrote:
>> If not, just do nothing. Exept on old x86_64, you could
>> set lddir=lib64 if it exists.
>
> Yep, just after sending my mail about finding libc.so.6 I thought it might be
> better to look for crti.o. I hope that approach will please you.
Well, I see it's not trivial. Doing it completely statically
like when you had it in tcc.h isn't good because you can't test
file existence anymore. Doing it completely dynamically
by looking at ldd may end up in hardlink jungle. So maybe
there is something in between.
I changed configure to pass CONFIG_xxxDIR/PATH options via
commandline. Reason: otherwise it is not possible to leave
CONFIG_MULTIARCHDIR undefined e.g. for cross-compilers.
Now, if we could move those three runtime checks from Makefile
to configure I will be completely unconditionally happy ;)
- ifneq (,$(wildcard /lib/ld-linux.so.3))
- ifneq (,$(wildcard /lib/ld-linux-armhf.so.3 /lib/arm-linux-gnueabihf/ld-linux.so.3))
- $(if $(shell grep -l "^Features.* \(vfp\|iwmmxt\) " /proc/cpuinfo),-DTCC_ARM_VFP)
(Of course I don't insist. Just if you can see a nice solution right now)
Thanks for all your work,
--- grischka
_______________________________________________
Tinycc-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/tinycc-devel
[Prev in Thread] | Current Thread | [Next in Thread] |