Merge pull request #4822 from JojoS62/fix-makefile-exporter

fix unresolved linker msg: __wrap_
pull/4887/merge
Jimmy Brisson 2017-08-10 09:36:56 -05:00 committed by GitHub
commit 92ac0abca5
2 changed files with 4 additions and 2 deletions

View File

@ -200,7 +200,9 @@ class GccArm(Makefile):
@staticmethod
def prepare_lib(libname):
return "-l:" + libname
if "lib" == libname[:3]:
libname = libname[3:-2]
return "-l" + libname
@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 $< $@