Samba4 Cross-Compile issue

Steven Edwards steven_ed4153 at yahoo.com
Fri Jul 15 19:43:34 GMT 2005


Hi,
I spoke with Tridge about this lastnight and I am afriad I'm going to have to throw in the towel
because autoconf and I just don't get along. The heimdal build requires certain headers and such
to to autogenerated at build time and the current build system makes no distinction between HOST
and TARGET so the tools end up being built for the target platform, killing the build. Tridge
suggested adding some autoconf magic to detect the hostcc and detecting CC=$NATIVE_CC in the
heimdal_build/build_external.sh script. I was not able to make it work but like I said coding is
just a hobby for me and autoconf and I never got along well to begin with. I still think this is
going to cause a issue anyway because the configure checks for host vs target will differ.

A option that I might be able to implement if no one else wants to fix it or objects, is to add a
configure option like we have in wine --with-native-tools=/path/to/native/tools. This would mean
you will need two copies of the Samba tree if you want to cross-compile. 

There is also some Mingw fixes from heimdal-current that I can backport in to the samba tree once
the autoconf issue is fixed. Cross-Compiling for any other platform should work fine once the
build system bug is nailed.

Thanks
Steven


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the samba-technical mailing list