Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: MakeMaker tailoring

by roboticus (Chancellor)
on Jan 24, 2008 at 13:45 UTC ( #664017=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://664017]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (1)
As of 2021-11-30 07:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?