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

Owner: Nobody in particular
Requestors: jdhedden [...]

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

Subject: Does not generate XS_VERSION
Download (untitled) / with headers
text/plain 311b
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.
Download (untitled) / with headers
text/plain 280b
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
Download (untitled) / with headers
text/plain 267b
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

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to