I need to pass -Wl,-rpath,\$$ORIGIN/lib/ to g++’s linker (reason). Is there a way to pass this argument in Jamroot file?
I need to pass -Wl,-rpath,\$$ORIGIN/lib/ to g++’s linker ( reason ). Is there a
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Ivan Vucica already described how to do it by modifying the toolset. Another option is to add it to the properties of the project. At the top of your Jamroot, add the following rule (or modify a pre-existing
projectrule).This will only affect gcc on this project, and works even if the current
using gcc ;command is called from outside Jamroot (as in Ubuntu’s default configuration).There might be a better way by somehow modifying the python-for-extensions alias that Boost.Build links against when calling python-extension, but I’m not sure how to do it, or even if it can be done.