OSDN Git Service

* config/freebsd-spec.h: Add comment about what macros can be defined
[pf3gnuchains/gcc-fork.git] / gcc / config / freebsd-spec.h
index 00b7407..770a3d1 100644 (file)
@@ -1,6 +1,6 @@
 /* Base configuration file for all FreeBSD targets.
-   Copyright (C) 1999, 2000, 2001, 2004, 2005, 2007, 2009, 2010
-   Free Software Foundation, Inc.
+   Copyright (C) 1999, 2000, 2001, 2004, 2005, 2007, 2009, 2010, 2011,
+   2012 Free Software Foundation, Inc.
 
 This file is part of GCC.
 
@@ -121,6 +121,9 @@ is built with the --enable-threads configure-time option.}          \
   %{!shared:                                                           \
     %{!pg: %{pthread:-lpthread} -lc}                                   \
     %{pg:  %{pthread:-lpthread_p} -lc_p}                               \
+  }                                                                    \
+  %{shared:                                                            \
+    %{pthread:-lpthread} -lc                                           \
   }"
 #endif
 #endif
@@ -131,11 +134,6 @@ is built with the --enable-threads configure-time option.}         \
 #define FBSD_DYNAMIC_LINKER "/libexec/ld-elf.so.1"
 #endif
 
-#if defined(HAVE_LD_EH_FRAME_HDR)
-#define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
-#endif
-
-/* Use --as-needed -lgcc_s for eh support.  */
-#ifdef HAVE_LD_AS_NEEDED
-#define USE_LD_AS_NEEDED 1
-#endif
+/* NOTE: The freebsd-spec.h header is included also for various
+   non-FreeBSD powerpc targets, thus it should never define macros
+   other than FBSD_* prefixed ones, or USING_CONFIG_FREEBSD_SPEC.  */