From: Yunlian Jiang <[email protected]>
The build-time binary makestrs should not be built with target flags.
If the target flags are not compatable with the build compiler. The
compile time error or the runtime error may happen when building or
running the binary makestrs.
---
configure.ac | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
index 1f95a5c..a9c07a0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -63,12 +63,15 @@ if test x"$CC_FOR_BUILD" = x; then
CC_FOR_BUILD="$CC"
fi
fi
+
+if test x"$cross_compiling" != xyes; then
+ : ${CFLAGS_FOR_BUILD=${CFLAGS}}
+ : ${CPPFLAGS_FOR_BUILD=${CPPFLAGS}}
+ : ${LDFLAGS_FOR_BUILD=${LDFLAGS}}
+fi
AC_SUBST([CC_FOR_BUILD])
-CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
AC_SUBST(CPPFLAGS_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)
# Map function checks to old Imake #defines
--
1.8.4
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel