ARM patch for gcc 2.95.3
Richard Earnshaw
rearnsha@arm.com
Wed Mar 21 02:29:00 GMT 2001
> Hi,
>
> The following patch was submitted by Jeff Sutherland <jeffs@accelent.com>
> for building a C++ cross compiler for ARM-linux:
> +#TARGET_LIBGCC2_CFLAGS = -fomit-frame-pointer -fPIC -Dinhibit_libc -D__gthr_posix_h
This is wrong, since it will break native builds. When building an
ARM/Linux cross, you need to make sure that the Linux header files are
available to the cross compiler (use --with-headers during configure).
> -#include <exception>
> +#include "exception"
This isn't ARM specific, but it looks suspicious too.
> -#include "typeinfo"
> +#include "inc/typeinfo"
As does this.
More information about the Gcc-patches
mailing list