netbsd.h (NETBSD_LIB_SPEC): Add -lc when creating shared objects.
authorMaya Rashish <coypu@sdf.org>
Thu, 29 Jun 2017 23:23:06 +0000 (23:23 +0000)
committerJeff Law <law@gcc.gnu.org>
Thu, 29 Jun 2017 23:23:06 +0000 (17:23 -0600)
2017-06-29  Maya Rashish  <coypu@sdf.org>

* config/netbsd.h (NETBSD_LIB_SPEC): Add -lc when creating shared
objects.

From-SVN: r249822

gcc/ChangeLog
gcc/config/netbsd.h

index 3b0723577ff6bcb653f4fb950153618856f3269c..9dd05c60b3e3890626c581d7f0dfecab8e23f97c 100644 (file)
@@ -1,3 +1,8 @@
+2017-06-29  Maya Rashish  <coypu@sdf.org>
+
+       * config/netbsd.h (NETBSD_LIB_SPEC): Add -lc when creating shared
+       objects.
+
 2017-06-29  Jan Hubicka  <hubicka@ucw.cz>
 
        * arm/arm-builtins.c: Include profile-count.h
index 4001f240d58bc6135fa385d2b052d944c97a6082..f4ac23a73a23898671f731f53be10709aca7ba1f 100644 (file)
@@ -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:                   \