diff options
Diffstat (limited to 'contrib/gcc/config/arm/linux-elf.h')
-rw-r--r-- | contrib/gcc/config/arm/linux-elf.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/contrib/gcc/config/arm/linux-elf.h b/contrib/gcc/config/arm/linux-elf.h index 74f7e7e..f1c86d2 100644 --- a/contrib/gcc/config/arm/linux-elf.h +++ b/contrib/gcc/config/arm/linux-elf.h @@ -1,5 +1,5 @@ /* Definitions for ARM running Linux-based GNU systems using ELF - Copyright (C) 1993, 1994, 1997, 1998, 1999, 2000, 2001 + Copyright (C) 1993, 1994, 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. Contributed by Philip Blundell <philb@gnu.org> @@ -42,6 +42,10 @@ Boston, MA 02111-1307, USA. */ #define CPP_APCS_PC_DEFAULT_SPEC "-D__APCS_32__" +/* The GNU C++ standard library requires that these macros be defined. */ +#undef CPLUSPLUS_CPP_SPEC +#define CPLUSPLUS_CPP_SPEC "-D_GNU_SOURCE %(cpp)" + /* Now we define the strings used to build the spec file. */ #define LIB_SPEC \ "%{shared: -lc} \ @@ -87,7 +91,7 @@ Boston, MA 02111-1307, USA. */ #undef CPP_PREDEFINES #define CPP_PREDEFINES \ -"-Dunix -Dlinux -D__ELF__ \ +"-Dunix -D__gnu_linux__ -Dlinux -D__ELF__ \ -Asystem=unix -Asystem=posix" /* Allow #sccs in preprocessor. */ |