in reply to Module distribution and Inline::C
This makes it possible to build the module (because it can see the definitions) but when it runs it spits out a relocation error because the functions in the included library aren't actually compiled. Also tried combining the two:use Inline C => 'DATA', LIBS = > '-lalib -lanotherlib', INC = > '-Iinc';
This won't build of course since somecode.o doesn't exist. Perhaps there is a way to modify Makefile.PL to do a:use Inline C => 'DATA', LIBS = > '-lalib -lanotherlib', MYEXTLIB = > 'inc/somecode.o', INC = > '-Iinc';
gcc -o inc/somecode.o -c somecode.cbefore building the module itself? Where gcc is set to whatever CC is in the Makefile of course.
|
|---|