⛏️ index : buildtools.git

author Oliver Tappe <zooey@hirschkaefer.de> 2014-07-22 16:09:39.0 +02:00:00
committer Oliver Tappe <zooey@hirschkaefer.de> 2014-07-23 9:18:51.0 +02:00:00
commit
54883b1bb5334cdb6a77a77e33e634c699c02353 [patch]
tree
d1f193515507de8e861adfb6247b4fc448bf2a15
parent
ec31cc6bfcc5cd3f93208fbf2c667074a19c9ba4
download
54883b1bb5334cdb6a77a77e33e634c699c02353.tar.gz

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.

Diff

 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"