From 98e104cbc95d8fd9f0850866ec1d86bd430f2353 Mon Sep 17 00:00:00 2001 From: Scott Long Date: Thu, 7 Jul 2005 21:40:37 +0000 Subject: [PATCH] Patch the freebsd spec file for PowerPC so that PIC code builds correctly. This allows FreeBSD/PPC to build and run out of stock CVS sources. This also takes the file off of the vendor branch. Submitted by: kan, grehan Approved by: re, kan --- contrib/gcc/config/rs6000/freebsd.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/contrib/gcc/config/rs6000/freebsd.h b/contrib/gcc/config/rs6000/freebsd.h index fe6a801bb2cb..196e5ac8b8a1 100644 --- a/contrib/gcc/config/rs6000/freebsd.h +++ b/contrib/gcc/config/rs6000/freebsd.h @@ -24,6 +24,12 @@ #undef CPP_OS_DEFAULT_SPEC #define CPP_OS_DEFAULT_SPEC "%(cpp_os_freebsd)" +#undef CPP_OS_FREEBSD_SPEC +#define CPP_OS_FREEBSD_SPEC "\ + -D__PPC__ -D__ppc__ -D__PowerPC__ -D__powerpc__ \ + -Acpu=powerpc -Amachine=powerpc \ + %{fPIC|fpic|fPIE|fpie:-D__PIC__ -D__pic__} " + #undef STARTFILE_DEFAULT_SPEC #define STARTFILE_DEFAULT_SPEC "%(startfile_freebsd)"