about summary refs log tree commit diff
path: root/ports/sysdeps/arm/Makefile
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/sysdeps/arm/Makefile
parent7a845b2c237434d4aad790aaba3a973e24ea802f (diff)
downloadglibc-95f5a9a866695da4e038aa4e6ccbbfd5d9cf63b7.tar.gz
glibc-95f5a9a866695da4e038aa4e6ccbbfd5d9cf63b7.tar.xz
glibc-95f5a9a866695da4e038aa4e6ccbbfd5d9cf63b7.zip
Avoid use of libgcc_s and libgcc_eh when building glibc.
Diffstat (limited to 'ports/sysdeps/arm/Makefile')
-rw-r--r--ports/sysdeps/arm/Makefile8
1 files changed, 8 insertions, 0 deletions
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)