2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-22 01:46:15 +01:00

Improve ldscript example

This commit is contained in:
Waf Project 2024-04-21 06:59:27 +02:00
parent e0dcfae373
commit a3fec9f0b3

View File

@ -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)