Skip to content

Commit be72993

Browse files
JojoS62adbridge
authored andcommitted
fix unresolved linker msg: __wrap_
adding libraries to gcc linker group command
1 parent 5bc33af commit be72993

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tools/export/makefile/__init__.py

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

201201
@staticmethod
202202
def prepare_lib(libname):
203-
return "-l:" + libname
203+
return "-l" + libname[3:-2]
204204

205205
@staticmethod
206206
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)