www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Dub cmdline overrides?

reply Arjan <arjan ask.me.to> writes:
Is there a cmdline switch to DUB to override certain dub.sdl 
settings for a dependency? Like the addition or override to lib 
dirs or link-libs?

For example once and a while I run into linking issues with 
symbols not found due to the `soname` being different on my 
system than specified in some dependency dub.sdl. Or the lib path 
to the shared lib is different.
Nov 07 2020
parent James Blachly <james.blachly gmail.com> writes:
On 11/7/20 7:58 AM, Arjan wrote:
 Is there a cmdline switch to DUB to override certain dub.sdl settings 
 for a dependency? Like the addition or override to lib dirs or link-libs?
 
 For example once and a while I run into linking issues with symbols not 
 found due to the `soname` being different on my system than specified in 
 some dependency dub.sdl. Or the lib path to the shared lib is different.
 
I don't think so, as I have also looked for that very feature in the past. Probably it is not supported in order to make builds more deterministic the dubfile is a record of how the binary was built (kind of, since there are obviously multiple configurations...)
Nov 07 2020