fix unresolved linker msg: __wrap_

adding  libraries to gcc linker group command
pull/4889/head
JojoS 2017-07-27 22:24:21 +02:00 committed by adbridge
parent 5bc33afed2
commit be72993ee2
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 $< $@