mirror of https://github.com/ARMmbed/mbed-os.git
verify libname before stripping
parent
be72993ee2
commit
a77182edcc
|
@ -200,7 +200,9 @@ class GccArm(Makefile):
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def prepare_lib(libname):
|
def prepare_lib(libname):
|
||||||
return "-l" + libname[3:-2]
|
if "lib" == libname[:3]:
|
||||||
|
libname = libname[3:-2]
|
||||||
|
return "-l" + libname
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def prepare_sys_lib(libname):
|
def prepare_sys_lib(libname):
|
||||||
|
|
Loading…
Reference in New Issue