我是否可以说服EU :: MM编译辅助工具而无需寻找XS来构建?
例如,给出以下内容:
Makefile.PL helper.c example.pl lib/App/Example.pm
...生成的Makefile上的 make 尝试使用动态库:
$:- cat Makefile.PL
use ExtUtils::MakeMaker;
WriteMakefile(
NAME => 'App::Example',
VERSION_FROM => 'lib/App/Example.pm', # finds $VERSION
);
$:- perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for App::Example
$:- make
cp lib/App/Example.pm blib/lib/App/Example.pm
AutoSplitting blib/lib/App/Example.pm (blib/lib/auto/App/Example)
Running Mkbootstrap for App::Example ()
chmod 644 Example.bs
rm -f blib/arch/auto/App/Example/Example.so
gcc -shared .... Example.o -o blib/arch/auto/App/Example/Example.so \
\
gcc: Example.o: No such file or directory
gcc: no input files
make: *** [blib/arch/auto/App/Example/Example.so] Error 1
我最终希望在/usr/bin
下的/usr/sbin
, example.pl 下构建并安装 helper ,并且App :: $Config{vendorlib}
下的示例。但是,我需要纯粹的perl模块"内置"正确的第一使用C和EXE_FILES指令并没有改变这种行为。