summaryrefslogtreecommitdiffstats
path: root/contrib/gcc/config/freebsd.h
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1999-12-19 06:42:24 +0000
committerobrien <obrien@FreeBSD.org>1999-12-19 06:42:24 +0000
commit4cced586e8673594612f5b42945561cf48e51f5a (patch)
treecaf2f931e2c81c9a94f90556be8bebd6a8b0427f /contrib/gcc/config/freebsd.h
parentbead2e7139048bc73563fd52c30d1ce5ae124a87 (diff)
downloadFreeBSD-src-4cced586e8673594612f5b42945561cf48e51f5a.zip
FreeBSD-src-4cced586e8673594612f5b42945561cf48e51f5a.tar.gz
Use a unified CPP_SPEC.
Diffstat (limited to 'contrib/gcc/config/freebsd.h')
-rw-r--r--contrib/gcc/config/freebsd.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/gcc/config/freebsd.h b/contrib/gcc/config/freebsd.h
index a96dac6..95505d8 100644
--- a/contrib/gcc/config/freebsd.h
+++ b/contrib/gcc/config/freebsd.h
@@ -58,6 +58,17 @@ Boston, MA 02111-1307, USA. */
the final CPP_PREDEFINES value. */
#define CPP_FBSD_PREDEFINES " -Dunix -D__FreeBSD__=4 -D__FreeBSD_cc_version=400003 -Asystem(unix) -Asystem(FreeBSD) "
+#define FBSD_CPP_SPEC "\
+ %(cpp_cpu) \
+ %{!maout: -D__ELF__} \
+ %{munderscores: -D__UNDERSCORES__} \
+ %{maout: %{!mno-underscores: -D__UNDERSCORES__}} \
+ %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} \
+ %{posix:-D_POSIX_SOURCE}"
+
+#undef CPP_SPEC
+#define CPP_SPEC FBSD_CPP_SPEC
+
/* Provide a LIB_SPEC appropriate for FreeBSD. Just select the appropriate
libc, depending on whether we're doing profiling.
(like the default, except no -lg, and no -p). */
OpenPOWER on IntegriCloud