http://qs321.pair.com?node_id=664017


in reply to Re^2: MakeMaker tailoring
in thread MakeMaker tailoring

I don't believe that the presence of the XS interface would preclude the use of the dll for injection into other processes. Just provide your normal dll interface for your other code in addition to the XS stuff. So one copy will be loaded with perl and use the XS interface, and when you inject the DLL into other processes, the other processes will use the other interface.

Note: I'm assuming Windows here (where the above will work). I've not tried it in *NIX, though I don't know of any reason that it wouldn't work there.

Alternatively, can't you just add your rule to build the other DLL and add it as a dependency to the XS DLL?

...roboticus

Replies are listed 'Best First'.
Re^4: MakeMaker tailoring
by cdarke (Prior) on Jan 24, 2008 at 14:00 UTC
    OK, I see what you mean, but any idea how I do that using MakeMaker and Makefile.PL? Open the Makefile conventionally and change it long-hand? I was wondering if there was MakeMaker magic to do it.

    Yes, this is Windows. I have no idea how to do this from *NIX, it should be possible though since gdb -p and strace -p can.