summaryrefslogtreecommitdiff
path: root/toolchain/gcc/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2016-04-24 12:27:56 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2016-04-24 12:29:42 +0200
commita5d2b1c8ab83b23476b6e7979641cb3f158268ad (patch)
tree25229f199743afd00a769cfb99e4859f3637ae14 /toolchain/gcc/Makefile
parent9ecc237d25d5a7d7fc918f082f00de666bcd1868 (diff)
m68k: remove gcc wrapper
We don't need the gcc wrapper when some object files removed from libgcc.a. Idea from uClinux-toolchain build script. Fix some issues with shared flat, still no bootup. For msep-data DOPIC is used, for one-region flat DOPIC must be disabled. So both tested and working.
Diffstat (limited to 'toolchain/gcc/Makefile')
-rw-r--r--toolchain/gcc/Makefile9
1 files changed, 3 insertions, 6 deletions
diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile
index 4471bd4dd..3dc9227b3 100644
--- a/toolchain/gcc/Makefile
+++ b/toolchain/gcc/Makefile
@@ -276,12 +276,6 @@ endif
(cd $(TOOLCHAIN_DIR)/usr/bin && \
ln -sf $(GNU_TARGET_NAME)-gcc $(GNU_TARGET_NAME)-cc \
)
-ifeq ($(ADK_TARGET_ARCH_M68K),y)
- # create gcc wrapper for uClinux/m68k
- echo "#!/bin/sh" > $(TOOLCHAIN_DIR)/usr/bin/adk-uclinux-gcc
- echo "exec ${GNU_TARGET_NAME}-gcc \"\$$@\" -specs $(ADK_TOPDIR)/toolchain/gcc/m68k-uclinux-gcc.specs" >> $(TOOLCHAIN_DIR)/usr/bin/adk-uclinux-gcc
- chmod a+x $(TOOLCHAIN_DIR)/usr/bin/adk-uclinux-gcc
-endif
touch $@
$(WRKBUILD)/.compiled:
@@ -322,6 +316,9 @@ $(WRKBUILD)/.installed: $(WRKBUILD)/.compiled
touch $@
$(WRKBUILD)/.final:
+ifeq ($(ADK_TARGET_CPU_CF),y)
+ find $(STAGING_TARGET_DIR) -name libgcc.a -print | while read t; do $(GNU_TARGET_NAME)-ar dv "$t" _ctors.o; done
+endif
# remove any libiberty.a, breaking package/binutils later
-rm $(STAGING_TARGET_DIR)/usr/lib/libiberty.a
# cleanup unneeded docs