fix unresolved linker msg: __wrap_

adding  libraries to gcc linker group command
pull/4822/head
JojoS 2017-07-27 22:24:21 +02:00
parent 2305a8c7e4
commit c8bb167f1f
2 changed files with 2 additions and 2 deletions

View File

@ -200,7 +200,7 @@ class GccArm(Makefile):
@staticmethod
def prepare_lib(libname):
return "-l:" + libname
return "-l" + libname[3:-2]
@staticmethod
def prepare_sys_lib(libname):

View File

@ -1,6 +1,6 @@
{% extends "makefile/Makefile.tmpl" %}
{%- block sys_libs -%} -Wl,--start-group {{ld_sys_libs|join(" ")}} -Wl,--end-group {%- endblock -%}
{%- block sys_libs -%} -Wl,--start-group {{ld_sys_libs|join(" ")}} {{libraries|join(" ")}} -Wl,--end-group {%- endblock -%}
{% block elf2bin %}
$(ELF2BIN) -O binary $< $@