diff options
| author | pk <pk@NetBSD.org> | 1995-06-05 01:59:14 +0000 |
|---|---|---|
| committer | pk <pk@NetBSD.org> | 1995-06-05 01:59:14 +0000 |
| commit | d24616db68b5071bb7abaeeb1796ebd04e2c930b (patch) | |
| tree | c867453bb4b2f7099ddb1ab1f9ce8fafda1a62af /gnu | |
| parent | 69ae4252985b13defb01ce673ae7de6cab1816f9 (diff) | |
STARTFILE_SPEC: choose `scrt0.o' if `-static' is given.
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/usr.bin/gcc2/arch/i386/tm.h | 7 | ||||
| -rw-r--r-- | gnu/usr.bin/gcc2/arch/m68k/tm.h | 5 | ||||
| -rw-r--r-- | gnu/usr.bin/gcc2/arch/ns32k/tm.h | 5 | ||||
| -rw-r--r-- | gnu/usr.bin/gcc2/arch/sparc/tm.h | 7 |
4 files changed, 18 insertions, 6 deletions
diff --git a/gnu/usr.bin/gcc2/arch/i386/tm.h b/gnu/usr.bin/gcc2/arch/i386/tm.h index aacf1d1dccb..eade3d9151d 100644 --- a/gnu/usr.bin/gcc2/arch/i386/tm.h +++ b/gnu/usr.bin/gcc2/arch/i386/tm.h @@ -1,6 +1,6 @@ /* Configuration for an i386 running NetBSD as the target machine. - $Id: tm.h,v 1.8 1994/12/23 21:16:50 pk Exp $ + $Id: tm.h,v 1.9 1995/06/05 01:59:14 pk Exp $ */ /* This is tested by i386gas.h. */ @@ -17,6 +17,11 @@ /* Like the default, except no -lg. */ #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}" +#define STARTFILE_SPEC \ + "%{pg:gcrt0.o%s}\ + %{!pg:%{p:mcrt0.o%s}\ + %{!p:%{static:scrt0.o%s}%{!static:crt0.o%s}}}" + #undef SIZE_TYPE #define SIZE_TYPE "unsigned int" diff --git a/gnu/usr.bin/gcc2/arch/m68k/tm.h b/gnu/usr.bin/gcc2/arch/m68k/tm.h index bce4e2eea10..7244d52874b 100644 --- a/gnu/usr.bin/gcc2/arch/m68k/tm.h +++ b/gnu/usr.bin/gcc2/arch/m68k/tm.h @@ -1,4 +1,4 @@ -/* $Id: tm.h,v 1.5 1994/12/23 21:16:58 pk Exp $ */ +/* $Id: tm.h,v 1.6 1995/06/05 01:59:23 pk Exp $ */ #include <machine/ansi.h> #include "m68k/m68k.h" @@ -29,7 +29,8 @@ %{!static:%{!shared:-dp}}" #define STARTFILE_SPEC \ - "%{!shared:%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}}}" + "%{!shared:%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}\ + %{!p:%{static:scrt0.o%s}%{!static:crt0.o%s}}}}" /* No more libg.a; no libraries if making shared object */ diff --git a/gnu/usr.bin/gcc2/arch/ns32k/tm.h b/gnu/usr.bin/gcc2/arch/ns32k/tm.h index df02ff65ece..87df2bbfa8f 100644 --- a/gnu/usr.bin/gcc2/arch/ns32k/tm.h +++ b/gnu/usr.bin/gcc2/arch/ns32k/tm.h @@ -16,7 +16,7 @@ You should have received a copy of the GNU General Public License along with GNU CC; see the file COPYING. If not, write to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: tm.h,v 1.5 1994/12/23 21:17:00 pk Exp $ + $Id: tm.h,v 1.6 1995/06/05 01:59:27 pk Exp $ */ #if 0 @@ -80,7 +80,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. "%{!nostdlib:%{!r*:%{!e*:-e start}}} -dc -dp %{static:-Bstatic} %{assert*}" #define STARTFILE_SPEC \ - "%{!shared:%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}}}" + "%{!shared:%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}\ + %{!p:%{static:scrt0.o%s}%{!static:crt0.o%s}}}}" /* No more libg.a; no libraries if making shared object */ diff --git a/gnu/usr.bin/gcc2/arch/sparc/tm.h b/gnu/usr.bin/gcc2/arch/sparc/tm.h index 22eeb0488ac..7fc6e8db525 100644 --- a/gnu/usr.bin/gcc2/arch/sparc/tm.h +++ b/gnu/usr.bin/gcc2/arch/sparc/tm.h @@ -1,5 +1,5 @@ /* Configuration for NetBSD Sparc */ -/* $Id: tm.h,v 1.8 1994/12/23 21:17:02 pk Exp $ */ +/* $Id: tm.h,v 1.9 1995/06/05 01:59:30 pk Exp $ */ #include "sparc/sparc.h" @@ -13,6 +13,11 @@ #define LINK_SPEC \ "%{!nostdlib:%{!r*:%{!e*:-e start}}} -dc -dp %{static:-Bstatic} %{assert*}" +#define STARTFILE_SPEC \ + "%{pg:gcrt0.o%s}\ + %{!pg:%{p:mcrt0.o%s}\ + %{!p:%{static:scrt0.o%s}%{!static:crt0.o%s}}}" + #undef SIZE_TYPE #define SIZE_TYPE "unsigned int" |
