tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Compiling tcc for use in a static environment


From: Steve Kemp
Subject: Re: [Tinycc-devel] Compiling tcc for use in a static environment
Date: Wed, 9 Apr 2014 16:19:13 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

> I didn't look much at the patch but noticed it hardcodes i686 as the target. 
> Is your system a 32 bit intel system? If no, that might explain what is the 
> problem you encounter.

  No, sadly I'm on a 64-bit host.

> Also you can try playing with the number of / (adding or removing one)
> in line 396 of the patch (the one that sets CONFIG_TCC_CRTPREFIX.

  Noted, thanks.

> >   At this point I'm taking a step back and asking if there
> >  are any existing recipes for building a static compiler
> >  that can be used in a static-only environment (with no ldd
> >  or linker present).
> 
> I suppose you mean no ld.so.

  Yes, that is correct.

> Currently tcc fails to work with -static with  glibc but I don't know
> if that is the case with uclibc. I know there is some  line about
> uclibc in tcc's code so it should be supported but I never tried.

  I've tried to make it work, but not yet hit success.  The issue
 mostly resolves around it generating static code - actually compiling
 tcc itself seems simple enough.

Steve
-- 



reply via email to

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