[Qbs] How to pass -march=armv7-a to the g++ linking command line (without -Wl, )
Jake.Petroules at qt.io
Mon Jan 15 15:53:42 CET 2018
Jake Petroules - jake.petroules at qt.io
The Qt Company - Silicon Valley
Qbs build tool evangelist - qbs.io
From: Qbs <qbs-bounces+jake.petroules=qt.io at qt-project.org> on behalf of Ola Røer Thorsen <ola at silentwings.no>
Sent: Monday, January 15, 2018 3:13:41 PM
Subject: [Qbs] How to pass -march=armv7-a to the g++ linking command line (without -Wl, )
I've got a product running on Linux arm imx6. It's being cross-compiled on Linux x86_64. I've got it set up with both qmake and now qbs that hopefully should replace qmake at some point.
The binary created by qbs fails to run as it's set up to use the wrong interpreter. I need to pass "-mfloat-abi=hard" to g++ when it's used to link the application.
The qmake build ends up linking the application with a command line like this:
-o etc etc
Qbs does this:
-o etc etc
I'm struggling to find the property or similar in the cpp module that adds the "-mfloat-abi=hard"-option to g++ when used for linking.
Adding "-mfloat-abi=hard" to cpp.linkerFlags does not work as the option should not be wrapped with "-Wl,".
Adding -"mfloat-abi=hard" to cpp.commonCompilerFlags is necessary for the compiling but does not work for the linking.
So, how do I make qbs link using "g++ --mfloat-abi=hard"?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Qbs