diff options
Diffstat (limited to 'contrib/gcc/config/freebsd-spec.h')
-rw-r--r-- | contrib/gcc/config/freebsd-spec.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/contrib/gcc/config/freebsd-spec.h b/contrib/gcc/config/freebsd-spec.h index 4d81d80..e4459ba 100644 --- a/contrib/gcc/config/freebsd-spec.h +++ b/contrib/gcc/config/freebsd-spec.h @@ -1,20 +1,20 @@ /* Base configuration file for all FreeBSD targets. Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. -This file is part of GNU CC. +This file is part of GCC. -GNU CC is free software; you can redistribute it and/or modify +GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. -GNU CC is distributed in the hope that it will be useful, +GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License -along with GNU CC; see the file COPYING. If not, write to +along with GCC; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ @@ -62,7 +62,6 @@ Boston, MA 02111-1307, USA. */ else \ builtin_define ("__FreeBSD__"); \ builtin_define_std ("unix"); \ - builtin_define ("__ELF__"); \ builtin_define ("__KPRINTF_ATTRIBUTE__"); \ builtin_assert ("system=unix"); \ builtin_assert ("system=bsd"); \ @@ -79,7 +78,7 @@ Boston, MA 02111-1307, USA. */ #define FBSD_CPP_SPEC " \ %(cpp_cpu) \ - %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} \ + %{fPIC|fpic|fPIE|fpie:-D__PIC__ -D__pic__} \ %{posix:-D_POSIX_SOURCE}" /* Provide a STARTFILE_SPEC appropriate for FreeBSD. Here we add @@ -148,3 +147,9 @@ is built with the --enable-threads configure-time option.} \ }" #endif #endif + +#if FBSD_MAJOR < 6 +#define FBSD_DYNAMIC_LINKER "/usr/libexec/ld-elf.so.1" +#else +#define FBSD_DYNAMIC_LINKER "/libexec/ld-elf.so.1" +#endif |