Compiling c executables from the Perl Module :: Build

In this question about compiling c code in Module :: Build, it was suggested to use c_source to indicate the location of the c / C ++ source code.

This configuration parameter compiles the source into object files and adds the directory to the linker search path.

I would like to know if a similar configuration can be achieved where all .c files are compiled into standalone executables and installed next to bin/ scripts.

+6
source share
1 answer

You can check out the Alien :: set module, which does a superset of what you want, I think. It seems like https://metacpan.org/pod/Alien::Base::Authoring is a good place to start.

0
source

Source: https://habr.com/ru/post/973047/


All Articles