Skip to content

Commit 92ac0ab

Browse files
Merge pull request #4822 from JojoS62/fix-makefile-exporter
fix unresolved linker msg: __wrap_
2 parents 61d486a + 0c25444 commit 92ac0ab

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tools/export/makefile/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,9 @@ class GccArm(Makefile):
200200

201201
@staticmethod
202202
def prepare_lib(libname):
203-
return "-l:" + libname
203+
if "lib" == libname[:3]:
204+
libname = libname[3:-2]
205+
return "-l" + libname
204206

205207
@staticmethod
206208
def prepare_sys_lib(libname):

tools/export/makefile/make-gcc-arm.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% extends "makefile/Makefile.tmpl" %}
22

3-
{%- block sys_libs -%} -Wl,--start-group {{ld_sys_libs|join(" ")}} -Wl,--end-group {%- endblock -%}
3+
{%- block sys_libs -%} -Wl,--start-group {{ld_sys_libs|join(" ")}} {{libraries|join(" ")}} -Wl,--end-group {%- endblock -%}
44

55
{% block elf2bin %}
66
$(ELF2BIN) -O binary $< $@

0 commit comments

Comments
 (0)