Skip Menu |

This queue is for tickets about the Module-Build CPAN distribution.

Report information
The Basics
Id: 14262
Status: resolved
Priority: 0/
Queue: Module-Build

People
Owner: Nobody in particular
Requestors: jdhedden [...] 1979.usna.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.2611
Fixed in: (no value)



Subject: Does not generate XS_VERSION
The compiler flags: -DVERSION="1.23" -DXS_VERSION="1.23" are not being generated and added to the command line when invoking the compiler for C files generated from XS files. The workaround is that users must add: extra_compiler_flags => [ '-DVERSION="1.23"', '-DXSVERSION="1.23"' ], to their Build.PL.
I'm a little bit unsure how to properly do this. It's easy enough to add a couple of -D arguments for each XS file, but for the time being they'll all have to share the same version number (the version from the distribution) until we can come up with something fancier. -Ken
Okay, I've checked this code in, along with a couple tests to make sure it's working properly. I'm working under the assumption that VERSION and XS_VERSION need to be quoted strings, not numbers or whatever, though I couldn't find that documented anywhere. -Ken