summaryrefslogtreecommitdiff
path: root/tools/makefile.py
diff options
context:
space:
mode:
authorguozhanxin <[email protected]>2021-07-12 10:14:20 +0800
committerguozhanxin <[email protected]>2021-07-12 10:14:20 +0800
commit40e7d5a23df65c15bb7db53fe5f77e76701fd20d (patch)
tree4973b28b01d289dd596a097a7560f26b810db771 /tools/makefile.py
parentddc5c793a482fe44310bafe181802ad406fa1b29 (diff)
parent5bae565f7f021ab13113fc0a9c67fc468d97de02 (diff)
Merge remote-tracking branch 'remotes/gitee/master'
Diffstat (limited to 'tools/makefile.py')
-rw-r--r--tools/makefile.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/makefile.py b/tools/makefile.py
index 655e294575..97001892c9 100644
--- a/tools/makefile.py
+++ b/tools/makefile.py
@@ -51,6 +51,14 @@ def TargetMakefile(env):
if 'CXXFLAGS' in dir(rtconfig):
make.write('CXXFLAGS :=%s' % (rtconfig.CXXFLAGS))
make.write('\n')
+ if env.has_key('LIBS'):
+ make.write('EXTERN_LIB := ')
+ for tlib in env['LIBS']:
+ make.write('-l%s ' % (tlib))
+ if env.has_key('LIBPATH'):
+ for tlibpath in env['LIBPATH']:
+ make.write('-L%s ' % (tlibpath))
+ make.write('\n')
make.write('\n')