summaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-07-03 19:14:59 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-07-03 19:14:59 +0000
commit95f5a9a866695da4e038aa4e6ccbbfd5d9cf63b7 (patch)
treeddf8e760203bf2008c12269cb8f78aaa6cc06951 /ports
parent7a845b2c237434d4aad790aaba3a973e24ea802f (diff)
downloadglibc-95f5a9a866695da4e038aa4e6ccbbfd5d9cf63b7.tar.gz
Avoid use of libgcc_s and libgcc_eh when building glibc.
Diffstat (limited to 'ports')
-rw-r--r--ports/ChangeLog.arm7
-rw-r--r--ports/sysdeps/arm/Makefile8
2 files changed, 15 insertions, 0 deletions
diff --git a/ports/ChangeLog.arm b/ports/ChangeLog.arm
index c411e1c1fc..71e8b1b3d0 100644
--- a/ports/ChangeLog.arm
+++ b/ports/ChangeLog.arm
@@ -1,3 +1,10 @@
+2012-07-03 Joseph Myers <joseph@codesourcery.com>
+
+ * sysdeps/arm/Makefile (gnulib-arch): New variable.
+ (static-gnulib-arch): Likewise.
+ [subdir = elf] ($(objpfx)libgcc-stubs.a): New rule.
+ [subdir = elf] (lib-noranlib): Depend on $(objpfx)libgcc-stubs.a.
+
2012-06-12 Joseph Myers <joseph@codesourcery.com>
* sysdeps/unix/sysv/linux/arm/setcontext.S (__startcontext): Use
diff --git a/ports/sysdeps/arm/Makefile b/ports/sysdeps/arm/Makefile
index 5fd5136328..3bdb6b32df 100644
--- a/ports/sysdeps/arm/Makefile
+++ b/ports/sysdeps/arm/Makefile
@@ -1,8 +1,16 @@
+gnulib-arch = $(elfobjdir)/libgcc-stubs.a
+static-gnulib-arch = $(elfobjdir)/libgcc-stubs.a
+
ifeq ($(subdir),elf)
sysdep-dl-routines += tlsdesc dl-tlsdesc
sysdep_routines += aeabi_unwind_cpp_pr1 find_exidx tlsdesc dl-tlsdesc
sysdep-rtld-routines += aeabi_unwind_cpp_pr1 tlsdesc dl-tlsdesc
shared-only-routines += aeabi_unwind_cpp_pr1
+
+$(objpfx)libgcc-stubs.a: $(objpfx)aeabi_unwind_cpp_pr1.os
+ $(build-extra-lib)
+
+lib-noranlib: $(objpfx)libgcc-stubs.a
endif
ifeq ($(subdir),csu)