<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.26.0">
</HEAD>
<BODY>
On Tue, 2011-03-15 at 17:17 -0700, Paul Bender wrote:<BR>
<BLOCKQUOTE TYPE=CITE>
<TT><FONT COLOR="#1a1a1a">For what it is worth, as long I set the environment variables </FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a">CC_FOR_BUILD, CFLAGS_FOR_BUILD and LDFLAGS_FOR_BUILD during configure, </FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a">makestrs compiles correctly during cross compile. However, if I do not </FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a">set these environment variables during configure, then makestrs fails to </FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a">compile during cross cross compile.</FONT></TT><BR>
</BLOCKQUOTE>
<BR>
And what would be those values, the native compiler or the cross-compiler?<BR>
What happens if you don't set them? same as Jason?<BR>
<BR>
From my reading, the issue would be that makestrs drags many header files<BR>
which are probably appropriate for the host system but not for the build system.<BR>
<BR>
configure.ac:
<BLOCKQUOTE>
<PRE>
# Set-up variables to use build machine compiler when cross-compiling
if test x"$CC_FOR_BUILD" = x; then
if test x"$cross_compiling" = xyes; then
AC_CHECK_PROGS(CC_FOR_BUILD, gcc cc)
else
CC_FOR_BUILD="$CC"
fi
fi
AC_SUBST([CC_FOR_BUILD])
CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
AC_SUBST(CFLAGS_FOR_BUILD)
LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
AC_SUBST(LDFLAGS_FOR_BUILD)
</PRE>
</BLOCKQUOTE>
<BR>
Thanks
</BODY>
</HTML>