[rtems commit] build: Bring Item.link() in line with waf link

Sebastian Huber sebh at rtems.org
Tue Jul 27 05:42:40 UTC 2021

Module:    rtems
Branch:    master
Commit:    cc0bd0825b81f8d7bc154a2055877dcf6350bf26
Changeset: http://git.rtems.org/rtems/commit/?id=cc0bd0825b81f8d7bc154a2055877dcf6350bf26

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Sun Jul 25 17:08:04 2021 +0200

build: Bring Item.link() in line with waf link

The LDFLAGS are placed after the static libraries in the standard waf link
command, see "waflib/Tools/c.py" in the waf sources.


 wscript | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wscript b/wscript
index fb8ce92..27f65b2 100755
--- a/wscript
+++ b/wscript
@@ -327,11 +327,11 @@ class Item(object):
                 cmd.extend([i.abspath() for i in self.inputs])
                 cmd.append("-o" + self.outputs[0].abspath())
-                cmd.extend(self.ldflags)
                 cmd.extend(["-l" + l for l in self.stlib])
                 cmd.extend(["-l" + l for l in self.use])
+                cmd.extend(self.ldflags)
                 return self.exec_command(cmd)
             def scan(self):

More information about the vc mailing list