Skip to content

Commit 0c25444

Browse files
committed
verify libname before stripping
1 parent c8bb167 commit 0c25444

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
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[3:-2]
203+
if "lib" == libname[:3]:
204+
libname = libname[3:-2]
205+
return "-l" + libname
204206

205207
@staticmethod
206208
def prepare_sys_lib(libname):

0 commit comments

Comments
 (0)