|
Boost-Build : |
From: C. Andy Martin (andy_at_[hidden])
Date: 2004-11-18 11:12:15
C. Andy Martin wrote:
> C. Andy Martin wrote:
>
>>This problem occurs in a scenario where a DLL exports no symbols.
>
>
> I just answered my own question by searching through the list archives
> on gmane. Since the problem isn't with the build rules, but the stage
> rules, I just modify SUFDLL as was suggested on the list long ago. My
> solution in the main Jamfile for the project:
>
> SUFDLL_HACK = $(SUFDLL) ;
> if $(NT) { SUFDLL_HACK = .dll ; }
>
> {
> local SUFDLL = $(SUFDLL_HACK) ;
> # define stage rules here
> # stage ... ;
> }
This only works if you also surround the dll target definitions with the
same hack. So my modified hack puts this in the Jamrules:
SUFDLL_HACK = $(SUFDLL) ;
if $(NT) { SUFDLL_HACK = .dll ; }
Then in main Jamfile:
{
local SUFDLL = $(SUFDLL_HACK) ;
# define stage rules here
# stage ... ;
}
And in any Jamfiles which define dll's which export 0 symbols:
{
local SUFDLL = $(SUFDLL_HACK) ;
# define dll targets here
# dll ... ;
}
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