mirror of https://github.com/ARMmbed/mbed-os.git
armcc - remove libpath from ld flags
libpath is not required for exporters, as they provide default paths. This caused problems when paths are not correct for mbed tools, a project fails to build as path is not found.pull/2043/head
parent
693a8313c5
commit
29f806bb64
|
@ -224,9 +224,6 @@ class ARM_STD(ARM):
|
||||||
def __init__(self, target, options=None, notify=None, macros=None, silent=False, extra_verbose=False):
|
def __init__(self, target, options=None, notify=None, macros=None, silent=False, extra_verbose=False):
|
||||||
ARM.__init__(self, target, options, notify, macros, silent, extra_verbose=extra_verbose)
|
ARM.__init__(self, target, options, notify, macros, silent, extra_verbose=extra_verbose)
|
||||||
|
|
||||||
# Extend flags
|
|
||||||
self.flags['ld'].extend(["--libpath \"%s\"" % ARM_LIB])
|
|
||||||
|
|
||||||
# Run-time values
|
# Run-time values
|
||||||
self.ld.extend(["--libpath \"%s\"" % ARM_LIB])
|
self.ld.extend(["--libpath \"%s\"" % ARM_LIB])
|
||||||
|
|
||||||
|
@ -269,7 +266,5 @@ class ARM_MICRO(ARM):
|
||||||
elif target.core in ["Cortex-M0", "Cortex-M0+"]:
|
elif target.core in ["Cortex-M0", "Cortex-M0+"]:
|
||||||
self.sys_libs.extend([join(ARM_CPPLIB, lib+".l") for lib in ["cpp_ps", "cpprt_p"]])
|
self.sys_libs.extend([join(ARM_CPPLIB, lib+".l") for lib in ["cpp_ps", "cpprt_p"]])
|
||||||
else:
|
else:
|
||||||
# Run-time values
|
|
||||||
self.flags['ld'].extend(["--libpath \"%s\"" % ARM_LIB])
|
|
||||||
# Run-time values
|
# Run-time values
|
||||||
self.ld.extend(["--libpath \"%s\"" % ARM_LIB])
|
self.ld.extend(["--libpath \"%s\"" % ARM_LIB])
|
||||||
|
|
Loading…
Reference in New Issue