When creating a binding package in the dub repository do you specify the link flags?

Kelet kelethunter at gmail.com
Fri Jan 10 14:56:29 PST 2014


On Friday, 10 January 2014 at 18:44:22 UTC, Gary Willoughby wrote:
> When creating a binding package in the dub repository do you 
> specify the link flags or leave that up to the developer using 
> the library?
>
> For example, each package in the dub repository has a 
> package.json which describes exactly how the package should 
> build and link, etc. If the package only contained bindings to 
> a C library would you add the flag necessary to link against it 
> there or leave the responsibility for linking for the client 
> application that uses your binding?

Include the link flags.

If for some reason you can think of a case that might happen 
where the link flags may be erroneous or unnecessary, have two 
configurations: one which has the link flags, and one which does 
not.

Regards,
Kelet


More information about the Digitalmars-d-learn mailing list