Using Perl's ExtUtils::MakeMaker, how can I compile an executable using the same settings as my XS module?
问题 Given a Perl XS module using a C library, assume there is a Makefile.PL that is set up correctly so that all header and library locations, compiler and linker flags etc work correctly. Now, let's say I want to include a small C program with said XS module that uses the same underlying C library. What is the correct, platform independent way to specify the target executable so that it gets built with the same settings and flags? If I do the following sub MY::postamble { return <<FRAG; target