diff options
Diffstat (limited to 'gcc/config/netbsd.h')
-rw-r--r-- | gcc/config/netbsd.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/gcc/config/netbsd.h b/gcc/config/netbsd.h index 18bda9c3dd4..0eba84d0ae3 100644 --- a/gcc/config/netbsd.h +++ b/gcc/config/netbsd.h @@ -96,6 +96,7 @@ along with GCC; see the file COPYING3. If not see %{!pg:-lposix}} \ %{p:-lposix_p} \ %{pg:-lposix_p}} \ + %{shared:-lc} \ %{!shared: \ %{!symbolic: \ %{!p: \ @@ -109,6 +110,7 @@ along with GCC; see the file COPYING3. If not see %{!pg:-lposix}} \ %{p:-lposix_p} \ %{pg:-lposix_p}} \ + %{shared:-lc} \ %{!shared: \ %{!symbolic: \ %{!p: \ @@ -120,8 +122,7 @@ along with GCC; see the file COPYING3. If not see #undef LIB_SPEC #define LIB_SPEC NETBSD_LIB_SPEC -/* Provide a LIBGCC_SPEC appropriate for NetBSD. We also want to exclude - libgcc with -symbolic. */ +/* Provide a LIBGCC_SPEC appropriate for NetBSD. */ #ifdef NETBSD_NATIVE #define NETBSD_LIBGCC_SPEC \ @@ -133,7 +134,7 @@ along with GCC; see the file COPYING3. If not see %{p: -lgcc_p} \ %{pg: -lgcc_p}}" #else -#define NETBSD_LIBGCC_SPEC "%{!shared:%{!symbolic: -lgcc}}" +#define NETBSD_LIBGCC_SPEC "-lgcc" #endif #undef LIBGCC_SPEC @@ -179,3 +180,9 @@ along with GCC; see the file COPYING3. If not see #undef WINT_TYPE #define WINT_TYPE "int" + +#undef SUBTARGET_INIT_BUILTINS +#define SUBTARGET_INIT_BUILTINS \ + do { \ + netbsd_patch_builtins (); \ + } while(0) |