On 12/15/2010 5:31 PM, Matthew Musgrove wrote:
> Marc,
> I'm far from the Makefile expert but shouldn't the line that gets to the
> Makefile
> look like one of these?
>     export MATH_ROUND_FAIR_DEBUG := 1
> or: 
>     MATH_ROUND_FAIR_DEBUG := 1

Using := over = doesn't really matter in this context, but export is
important.  The export prefix exports that variable as an environment
variable to programs make runs instead of just residing in the makefile.
 := means evaluate the expression now and it only important if the
expression includes variables.  1 is just 1.  The problem here is that
export is GNU Make specific and does not exist in BSD Make or others.

> 
> If so, just wrapper that in a preamble call and it should be good to go.
> 
> Matt
> 
> 
> On Wed, Dec 15, 2010 at 7:16 PM, Marc Mims <m...@questright.com
> <mailto:m...@questright.com>> wrote:
> 
>     I recently released a new version of Math::Round::Fair.  Anders Johnson
>     provided several in situ tests that we optimized out at compile time
>     using Devel::Assert.  They can be turned on by setting an environment
>     variable:
> 
>        MATH_ROUND_FAIR_DEBUG=1
> 
>     I wanted the assertions enabled when "make test" runs without having to
>     explicitly set the variable in each test.  And I found a way to do that,
>     using Module::Install's "preamble":
> 
>        恓reamble "export MATH_ROUND_FAIR_DEBUG=1\n";
> 
>     That works for Linux systems, but seems to be failing on other
>     platforms:
> 
>     
> http://www.cpantesters.org/cpan/report/28e28ab0-0825-11e0-bb29-ad544afd17af
>     
> http://www.cpantesters.org/cpan/report/68705c5e-086e-11e0-bb29-ad544afd17af
> 
> 
>     So, how *should* I be doing this?
> 
>            -Marc
> 
> 


-- 
Loren M. Lang
lor...@north-winds.org
http://www.north-winds.org/


Public Key: ftp://ftp.north-winds.org/pub/lorenl_pubkey.asc
Fingerprint: 10A0 7AE2 DAF5 4780 888A  3FA4 DCEE BB39 7654 DE5B

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to