Boost logo

Boost-Build :

Subject: Re: [Boost-build] Shared lib target is always rebuild
From: Pavel Machyniak (machyniak_at_[hidden])
Date: 2012-05-18 06:11:35


On 18.5.2012 11:24, Vladimir Prus wrote:
> On 18/05/12 12:49, Pavel Machyniak wrote:
>> ...
>
> This is because your shared library probably does not export any
> symbols, using __declspec(dllexport).
> Of course, this also renders such library effectively useless ;-)
>
> - Volodya
>

Thanks for your response. I agree with that, but it was just a simple
case to demonstrate the behavior. Originally, the problem is with
"resource-only" dll on Windows with MSVC toolset. Is there any reason
for a target to be rebuild if none of its sources/dependencies were changed?

Is it possible to prevent unnecessary rebuilds of resource only dlls?
Here is an example:
### jamfile.jam ###
lib aaa : a.rc : <link>shared <linkflags>/NOENTRY : <toolset>msvc ;

---
### a.rc ###
STRINGTABLE
BEGIN
123 "some text"
END
---
Thanks,
Pavel Machyniak

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk