Re: recursively call unit test executable

Tim Blechmann via Boost-build <[email protected]> Mon, 5 Nov 2018 02:31:46 +0800
Newsgroups gmane.comp.lib.boost.build
Message-ID <[email protected]>
>> `std::system()` isn't able to resolve the dynamic libraries, so it fails
>> with:
>>> dyld: Library not loaded: libboost_chrono.dylib
>>>   Referenced from: /Users/tim/dev/boost/libs/lockfree/test/../../../bin.v2/libs/lockfree/test/queue_interprocess_test.test/darwin-4.2.1/debug/threadapi-pthread/threading-multi/visibility-hidden/queue_interprocess_test
>>>   Reason: image not found
[snip]
> The executable runs because DYLD_LIBRARY_PATH is set.
> Is this somehow not being inherited or is system() not
> respecting it?
> 
> Possible workarounds:
> - <hardcode-dll-paths>on or,
> - <link>static

actually i was using `hardcode-dll-paths`, but didn't have an effect ...
`static` linking works, will go that route ... thanks a lot!
_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build