Subject: | option to pass through test C source code |
This is a great module! Should be standard for all XS packages...
and ideally also standard arguments to specify INCLUDE/LIB search paths
in Makefile.PL should exist...
One suggestion though: I saw that there is a simple, but hardcoded
print $ch "int main(void) { return 0; }\n";
in the code. Why not make that an option parameter in the assert_lib()
function? I.e., allow the user to specify own code (the body in main {
...}). This would allow to add more meaningful code for the library,
so that e.g. also the existance of symbols in the library can be tested
in the link step.
I can work on a patch for this, if you'd prefer not to implement it
yourself.
All the best,
Marek