tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] test failure on Linux


From: grischka
Subject: Re: [Tinycc-devel] test failure on Linux
Date: Thu, 14 Feb 2013 17:58:36 +0100
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]