From 65aa5b8a5a985ce134928980388d857a5e4def70 Mon Sep 17 00:00:00 2001 From: jlam Date: Thu, 1 Mar 2001 00:30:34 +0000 Subject: Add LIBGCC_SPEC definition taken from gnusrc/gnu/dist/toolchain/gcc/config/netbsd.h --- lang/gcc/files/patch-sum | 4 ++-- lang/gcc/patches/patch-al | 18 ++++++++++++------ 2 files changed, 14 insertions(+), 8 deletions(-) (limited to 'lang') diff --git a/lang/gcc/files/patch-sum b/lang/gcc/files/patch-sum index 5d13fd690c3..3641a382a18 100644 --- a/lang/gcc/files/patch-sum +++ b/lang/gcc/files/patch-sum @@ -1,4 +1,4 @@ -$NetBSD: patch-sum,v 1.3 2001/02/28 23:28:08 hubertf Exp $ +$NetBSD: patch-sum,v 1.4 2001/03/01 00:30:34 jlam Exp $ MD5 (patch-aa) = 0166b5dcc45385063d43726df116eeec MD5 (patch-ab) = 7b4d30dcd719244e33f50e4f61edce27 @@ -11,7 +11,7 @@ MD5 (patch-ah) = ef04d7e23cd9b744cbe15c1f44d0a486 MD5 (patch-ai) = 702a0910bb030b132fdd549385a98a85 MD5 (patch-aj) = 4aded3f835f9274c295e350dba44946b MD5 (patch-ak) = cc9c95b28fb79e6e61290e319574a781 -MD5 (patch-al) = de183b1ee60e5ef79edf2dcec53b6e5b +MD5 (patch-al) = ded086a2288c116fd67f7cbb81abcf70 MD5 (patch-am) = a91440f20d85083c56023185b9526403 MD5 (patch-an) = ecdd3b83cfbe09cfa2db0a59c0bb36e3 MD5 (patch-ao) = 8a67865c648c6e6228e01ba0bc3a2b9c diff --git a/lang/gcc/patches/patch-al b/lang/gcc/patches/patch-al index b698315298b..1685b7fbac4 100644 --- a/lang/gcc/patches/patch-al +++ b/lang/gcc/patches/patch-al @@ -1,8 +1,8 @@ -$NetBSD: patch-al,v 1.2 2001/02/28 23:28:09 hubertf Exp $ +$NetBSD: patch-al,v 1.3 2001/03/01 00:30:34 jlam Exp $ ---- ../gcc-2.95.2/gcc/config/netbsd.h.orig Wed Dec 16 21:59:58 1998 -+++ ../gcc-2.95.2/gcc/config/netbsd.h Sat Sep 16 00:17:42 2000 -@@ -48,17 +48,31 @@ +--- ../gcc-2.95.2/gcc/config/netbsd.h.orig Wed Dec 16 15:59:58 1998 ++++ ../gcc-2.95.2/gcc/config/netbsd.h Wed Feb 28 18:41:35 2001 +@@ -48,17 +48,37 @@ #define ASM_SPEC " %| %{fpic:-k} %{fPIC:-k -K}" /* Provide a LIB_SPEC appropriate for NetBSD. Just select the appropriate @@ -16,6 +16,12 @@ $NetBSD: patch-al,v 1.2 2001/02/28 23:28:09 hubertf Exp $ + "%{posix:%{!p:%{!pg:-lposix}}%{p:-lposix_p}%{pg:-lposix_p}} \ + %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}" + ++/* Provide a LIBGCC_SPEC appropriate for NetBSD. We also want to exclude ++ libgcc when -symbolic. */ ++ ++#undef LIBGCC_SPEC ++#define LIBGCC_SPEC "%{!shared:%{!symbolic:-lgcc}}" ++ +/* #ifdef NETBSD_AOUT */ + +/* Provide a STARTFILE_SPEC appropriate for NetBSD a.out. Here we @@ -37,7 +43,7 @@ $NetBSD: patch-al,v 1.2 2001/02/28 23:28:09 hubertf Exp $ /* This defines which switch letters take arguments. */ #undef SWITCH_TAKES_ARG -@@ -127,6 +141,9 @@ +@@ -127,6 +147,9 @@ entries in an ELF object file under SVR4. These macros also output the starting labels for the relevant functions/objects. */ @@ -47,7 +53,7 @@ $NetBSD: patch-al,v 1.2 2001/02/28 23:28:09 hubertf Exp $ /* Write the extra assembler code needed to declare a function properly. Some svr4 assemblers need to also have something extra said about the function's return value. We allow for that here. */ -@@ -207,3 +224,56 @@ +@@ -207,3 +230,56 @@ putc ('\n', FILE); \ } \ } while (0) -- cgit v1.2.3