[Samba] Cross Compiling Samba 4.0.6 for ARM increases size of binaries

Andrew Bartlett abartlet at samba.org
Mon Jun 10 18:14:10 MDT 2013


On Mon, 2013-06-10 at 10:42 -0700, pranav desai wrote:
> Thanks Andrew for the reply.
> 
> Do we have a TODO list need to support cross compilation using the waf
> build system?
> I can try and hack around the build system.

The issue is the python detection.  This isn't hooked in to the system
that allows cross-compiles. 

> The WAF build system generates a cache file (default.cache.py) which
> has all the variables needed to configure
>  the waf system.
> Is it possible to modify or inject our own variables by modifying the
> file and ensuring the waf uses the cached values?
> Also can we expose more variables need for cross-compilation via a
> 'cross-answers' file?

Indeed, there is some detail here:
 https://wiki.samba.org/index.php/Waf#cross-compiling

> What would be a good approach to resolve this; I can perform some
> experiments and upload the code to be reviewed if all works well.

What we need is for the python checks, which are run against the current
python environment, to be run via cross-answers. 

I've not worked out the details of how to do that yet. 

Andrew Bartlett  

-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org




More information about the samba mailing list