mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-21 17:35:55 +01:00
Improve ldscript example
This commit is contained in:
parent
0d6464ee7a
commit
eb0dafc761
@ -20,7 +20,7 @@ def build(bld):
|
||||
linkflags = ['-nostdlib'],
|
||||
)
|
||||
|
||||
from waflib import Utils
|
||||
from waflib import Errors
|
||||
from waflib.TaskGen import after_method, feature
|
||||
|
||||
@after_method('propagate_uselib_vars')
|
||||
@ -31,7 +31,7 @@ def process_ldscript(self):
|
||||
|
||||
node = self.path.find_resource(self.ldscript)
|
||||
if not node:
|
||||
raise Utils.WafError('could not find %r' % self.ldscript)
|
||||
raise Errors.WafError('could not find %r' % self.ldscript)
|
||||
self.link_task.env.append_value('LINKFLAGS', '-Wl,-T,%s' % node.abspath())
|
||||
self.link_task.dep_nodes.append(node)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user