How to get path to a dependency lib target's result file #435
Unanswered
gabrieldevillers
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Something like this should work:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
b2 does not natively support GCC's ld
--whole-archive
so I am trying to use it via the<linkflags>
feature.However to do that I need to provide the path to the dependency I am linking against, such as:
"../build/Jam/LibA/gcc-14/debug/address-model-64/architecture-x86/cxxstd-20-iso/link-static/threading-multi/visibility-hidden/libcLibA.a"
(or the path to the directory containing it, that I would pass to
-L
)Is there a way to query the path to a dependency target's resulting file ?
Here is what I currently have:
which seems to work but hardcodes features values in the jamfile which is unfortunate.
So I would like to convert:
$(Project_TOP)/LibA//cLibA/<link>static/<define>LIBA_BUILD_DLL
into:
../build/Jam/LibA/gcc-14/debug/address-model-64/architecture-x86/cxxstd-20-iso/link-static/threading-multi/visibility-hidden/libcLibA.a
(taking feature values into account)
I searched the doc and the sources but found nothing that helps, but I am not a b2 expert so maybe I missed something.
In any case I whish you a Happy New Year.
Beta Was this translation helpful? Give feedback.
All reactions