From 9b260ce0b77813c5de47eecdcedb308b20ade081 Mon Sep 17 00:00:00 2001 From: Maya Rashish Date: Thu, 29 Jun 2017 23:23:06 +0000 Subject: [PATCH] netbsd.h (NETBSD_LIB_SPEC): Add -lc when creating shared objects. 2017-06-29 Maya Rashish * config/netbsd.h (NETBSD_LIB_SPEC): Add -lc when creating shared objects. From-SVN: r249822 --- gcc/ChangeLog | 5 +++++ gcc/config/netbsd.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3b0723577ff..9dd05c60b3e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-06-29 Maya Rashish + + * config/netbsd.h (NETBSD_LIB_SPEC): Add -lc when creating shared + objects. + 2017-06-29 Jan Hubicka * arm/arm-builtins.c: Include profile-count.h diff --git a/gcc/config/netbsd.h b/gcc/config/netbsd.h index 4001f240d58..f4ac23a73a2 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: \ -- 2.30.2