Clone of official tools

Revision:
35:da9c89f8be7d
Parent:
31:8ea194f6145b
Child:
40:7d3fa6b99b2b
--- a/export/makefile/make-gcc-arm.tmpl	Mon Feb 13 09:29:13 2017 -0600
+++ b/export/makefile/make-gcc-arm.tmpl	Wed Feb 15 13:53:18 2017 -0600
@@ -1,10 +1,6 @@
 {% extends "makefile/Makefile.tmpl" %}
 
-{% block sys_libs %}
-{% for lib in ["-lstdc++", "-lsupc++", "-lm", "-lc", "-lgcc", "-lnosys"] -%}
-LD_SYS_LIBS += {{lib}}
-{% endfor %}
-{%- endblock %}
+{%- block sys_libs -%} -Wl,--start-group {{ld_sys_libs|join(" ")}} -Wl,--end-group {%- endblock -%}
 
 {% block elf2bin %}
 	$(ELF2BIN) -O binary $< $@