On Sat, 2010-01-30 at 18:58 +0000, Dave Korn wrote:
> It goes on to suggest that it might be necessary to define "LIMITS_H_TEST =
> true" in the t-* makefile frag, so if you guys don't get syslimits.h being
> generated, maybe that would fix it for you too?
I must admit I didn't know I could set that variable in the t-* file.
But I think it does the wrong thing, it appears to override only the
test in the generated cegcc/src/build-mingw32ce/gcc/gcc/Makefile :
if $(LIMITS_H_TEST) ; then \
cat $(srcdir)/limitx.h $(srcdir)/glimits.h
$(srcdir)/limity.h > tmp-xlimits.h; \
else \
cat $(srcdir)/glimits.h > tmp-xlimits.h; \
fi; \
$(mkinstalldirs) $${fix_dir}; \
chmod a+rx $${fix_dir} || true; \
rm -f $${fix_dir}/limits.h; \
mv tmp-xlimits.h $${fix_dir}/limits.h; \
chmod a+r $${fix_dir}/limits.h; \
so all it appears to influence is whether glimits.h is surrounded by
limitx.h and limity.h or not.
What we need here is no limits.h coming from gcc because it already
comes from our src/mingw/include .
Inspired on all that, how does the patch attached look ?
It should be the more fundamental take on the problem.
Danny
--
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info
Index: gcc/Makefile.in
===================================================================
--- gcc/Makefile.in (revision 1429)
+++ gcc/Makefile.in (working copy)
@@ -3604,6 +3604,9 @@
sysroot_headers_suffix=`echo $${ml} | sed -e 's/;.*$$//'`; \
multi_dir=`echo $${ml} | sed -e 's/^[^;]*;//'`; \
fix_dir=include-fixed$${multi_dir}; \
+ if $(NO_GCC_LIMITS_H) ; then \
+ true; \
+ else \
if $(LIMITS_H_TEST) ; then \
cat $(srcdir)/limitx.h $(srcdir)/glimits.h $(srcdir)/limity.h > tmp-xlimits.h; \
else \
@@ -3614,6 +3617,7 @@
rm -f $${fix_dir}/limits.h; \
mv tmp-xlimits.h $${fix_dir}/limits.h; \
chmod a+r $${fix_dir}/limits.h; \
+ fi; \
done
# Install the README
rm -f include-fixed/README
@@ -4347,7 +4351,11 @@
set -e; for ml in `cat fixinc_list`; do \
multi_dir=`echo $${ml} | sed -e 's/^[^;]*;//'`; \
$(mkinstalldirs) $(DESTDIR)$(itoolsdatadir)/include$${multi_dir}; \
+ if $(NO_GCC_LIMITS_H); then \
+ true; \
+ else \
$(INSTALL_DATA) include-fixed$${multidir}/limits.h $(DESTDIR)$(itoolsdatadir)/include$${multi_dir}/limits.h; \
+ fi; \
done
$(INSTALL_SCRIPT) $(srcdir)/../mkinstalldirs \
$(DESTDIR)$(itoolsdir)/mkinstalldirs ; \
Index: gcc/config/arm/t-wince-pe
===================================================================
--- gcc/config/arm/t-wince-pe (revision 1429)
+++ gcc/config/arm/t-wince-pe (working copy)
@@ -9,6 +9,12 @@
_clzsi2 _clzdi2
#
+# Avoid installing the gcc private version of limits.h
+#
+LIMITS_H_TEST = true
+NO_GCC_LIMITS_H = true
+
+#
# Filter out functions from dp-bit.c that are already in lib1funcs.asm
#
DPBIT_FUNCS := $(filter-out _mul_df _div_df _addsub_df _compare_df \
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel