summaryrefslogtreecommitdiff
path: root/recipes/uclibc/uclibc-0.9.28/uclibc-libgcc-eh.patch
blob: 0f66c1526f85ecb6bbd79abcee039602fc0a71c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
 Rules.mak |    9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

Index: uClibc-0.9.28/Rules.mak
===================================================================
--- uClibc-0.9.28.orig/Rules.mak	2005-08-17 15:49:49.000000000 -0700
+++ uClibc-0.9.28/Rules.mak	2008-07-22 23:35:10.000000000 -0700
@@ -37,7 +37,8 @@
 # will build uClibc for 'arm'.
 
 ifndef CROSS
-CROSS=
+TARGET_ARCH=arm
+CROSS=arm-angstrom-linux-uclibcgnueabi-
 endif
 CC         = $(CROSS)gcc
 AR         = $(CROSS)ar
@@ -85,7 +86,8 @@ ifeq ($(filter $(noconfig_targets),$(MAK
 endif
 
 ifndef CROSS
-CROSS=$(subst ",, $(strip $(CROSS_COMPILER_PREFIX)))
+TARGET_ARCH=arm
+CROSS=arm-angstrom-linux-uclibcgnueabi-
 endif
 
 # A nifty macro to make testing gcc features easier
@@ -337,6 +339,9 @@ ASFLAGS += $(ASFLAGS_NOEXEC)
 LIBGCC_CFLAGS ?= $(CFLAGS) $(CPU_CFLAGS-y)
 LIBGCC:=$(shell $(CC) $(LIBGCC_CFLAGS) -print-libgcc-file-name)
 LIBGCC_DIR:=$(dir $(LIBGCC))
+ifneq ($(shell $(CC) $(LIBGCC_CFLAGS) -print-file-name=libgcc_eh.a),libgcc_eh.a)
+  LIBGCC += $(shell $(CC) $(LIBGCC_CFLAGS) -print-file-name=libgcc_eh.a)
+endif
 
 ########################################
 #