From 54883b1bb5334cdb6a77a77e33e634c699c02353 Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Tue, 22 Jul 2014 16:09:39 +0200 Subject: [PATCH] Let gcc2 use crtbeginS.o and crtendS.o, too. * I doubt that this makes much of a difference, but it avoids yet another indirection in Haiku's build system. --- legacy/gcc/gcc/configure | 2 +- legacy/gcc/gcc/config/i386/haiku.h | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/legacy/gcc/gcc/configure b/legacy/gcc/gcc/configure index 6d4bfac..da6fd1c 100755 --- a/legacy/gcc/gcc/configure +++ b/legacy/gcc/gcc/configure @@ -3588,7 +3588,7 @@ tm_file=i386/haiku.h xmake_file=i386/x-haiku extra_objs=winnt.o - extra_parts='crtbegin.o crtend.o' + extra_parts='crtbegin.o crtbeginS.o crtend.o crtendS.o' fixincludes=Makefile.in float_format=i386 ;; diff --git a/legacy/gcc/gcc/config/i386/haiku.h b/legacy/gcc/gcc/config/i386/haiku.h index d2d4d59..0f83b7c 100644 --- a/legacy/gcc/gcc/config/i386/haiku.h +++ b/legacy/gcc/gcc/config/i386/haiku.h @@ -199,10 +199,10 @@ #define LIBGCC_SPEC "" #undef STARTFILE_SPEC -#define STARTFILE_SPEC "crti.o%s crtbegin.o%s %{!nostart: %{!shared: start_dyn.o%s}} init_term_dyn.o%s" +#define STARTFILE_SPEC "crti.o%s crtbeginS.o%s %{!nostart: %{!shared: start_dyn.o%s}} init_term_dyn.o%s" #undef ENDFILE_SPEC -#define ENDFILE_SPEC "crtend.o%s crtn.o%s" +#define ENDFILE_SPEC "crtendS.o%s crtn.o%s" /* Get perform_* macros to build libgcc.a. */ #include "i386/perform.h" -- gitore 0.2.3