This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem with some canadian cross builds


>>>>> "H. J. Lu" == H J Lu <hjl@lucon.org> writes:

H. J. Lu> On Fri, Aug 02, 2002 at 09:34:30AM +0300, Momchil Velikov wrote:
>> >>>>> "H. J. Lu" == H J Lu <hjl@lucon.org> writes:
>> H. J. Lu> This what I have in my gcc spec file:
>> 
>> H. J. Lu> %if %{cross_compile}
>> H. J. Lu> # Install syslimits.h for canadian cross compile.
>> H. J. Lu> pushd $RPM_BUILD_DIR/gcc-3.1-%{DATE}/obj-%{_target_platform}
>> H. J. Lu> #pushd $RPM_BUILD_DIR/gcc-%{version}-%{DATE}/obj-%{_target_platform}
>> H. J. Lu> cp -af ../gcc/gsyslimits.h $FULLPATH/include/syslimits.h
>> 
>> Which reminds me of this patch, which was either too stupid or simply
>> went unnoticed.
>> 
>> http://gcc.gnu.org/ml/gcc-patches/2001-03/msg00699.html

H. J. Lu> I don't know if you can use gcc/gsyslimits.h for all platforms.

#define _GCC_NEXT_LIMITS_H		/* tell gcc's limits.h to recurse */
#include_next <limits.h>
#undef _GCC_NEXT_LIMITS_H

What would be the problem ?

~velco


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]