diff options
author | scottl <scottl@FreeBSD.org> | 2005-07-07 21:40:37 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2005-07-07 21:40:37 +0000 |
commit | c6f8608ea010e10ab050c6dd7fa80755758023a0 (patch) | |
tree | cc43084eb951a8b5a4d705f53e782d3b827b07fe /contrib | |
parent | c91989d29bf9334fb66aa72bcd388a7cf938754f (diff) | |
download | FreeBSD-src-c6f8608ea010e10ab050c6dd7fa80755758023a0.zip FreeBSD-src-c6f8608ea010e10ab050c6dd7fa80755758023a0.tar.gz |
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
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/gcc/config/rs6000/freebsd.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/gcc/config/rs6000/freebsd.h b/contrib/gcc/config/rs6000/freebsd.h index fe6a801..196e5ac 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)" |