pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

gcc6snapshot: link against libc when building shared on netbsd



Module Name:	pkgsrc-wip
Committed By:	coypu <coypu%sdf.org@localhost>
Pushed By:	coypu
Date:		Tue Sep 13 01:19:08 2016 +0300
Changeset:	448c56da72fba5bbe9871a383a4d058100fa99b9

Modified Files:
	gcc6snapshot/patches/patch-gcc_config_netbsd.h

Log Message:
gcc6snapshot: link against libc when building shared on netbsd

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=448c56da72fba5bbe9871a383a4d058100fa99b9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 gcc6snapshot/patches/patch-gcc_config_netbsd.h | 23 +++++++++++++++++++++--
 1 file changed, 21 insertions(+), 2 deletions(-)

diffs:
diff --git a/gcc6snapshot/patches/patch-gcc_config_netbsd.h b/gcc6snapshot/patches/patch-gcc_config_netbsd.h
index c050855..9103e22 100644
--- a/gcc6snapshot/patches/patch-gcc_config_netbsd.h
+++ b/gcc6snapshot/patches/patch-gcc_config_netbsd.h
@@ -1,4 +1,7 @@
-$NetBSD: patch-gcc_config_netbsd.h,v 1.1 2014/12/17 21:51:02 keckhardt Exp $
+$NetBSD: patch-gcc_config_netbsd.h,v 1.1 2016/09/12 22:13:54 maya Exp $
+
+when using shared, link against libc
+another unexplained change`
 
 --- gcc/config/netbsd.h.orig	2014-01-02 22:23:26.000000000 +0000
 +++ gcc/config/netbsd.h
@@ -12,7 +15,23 @@ $NetBSD: patch-gcc_config_netbsd.h,v 1.1 2014/12/17 21:51:02 keckhardt Exp $
  /* TARGET_OS_CPP_BUILTINS() common to all NetBSD targets.  */
  #define NETBSD_OS_CPP_BUILTINS_COMMON()		\
    do						\
-@@ -175,3 +178,9 @@ along with GCC; see the file COPYING3.  
+@@ -96,6 +99,7 @@ along with GCC; see the file COPYING3.  
+        %{!pg:-lposix}}		\
+      %{p:-lposix_p}		\
+      %{pg:-lposix_p}}		\
++   %{shared:-lc}		\
+    %{!shared:			\
+      %{!symbolic:		\
+        %{!p:			\
+@@ -109,6 +113,7 @@ along with GCC; see the file COPYING3.  
+        %{!pg:-lposix}}		\
+      %{p:-lposix_p}		\
+      %{pg:-lposix_p}}		\
++   %{shared:-lc}		\
+    %{!shared:			\
+      %{!symbolic:		\
+        %{!p:			\
+@@ -175,3 +180,9 @@ along with GCC; see the file COPYING3.  
  
  #undef WINT_TYPE
  #define WINT_TYPE "int"


Home | Main Index | Thread Index | Old Index