m_antis has quit [Read error: Connection reset by peer]
OverCoder has quit [Quit: Ping timeout (120 seconds)]
OverCoder has joined #ruby
helge has quit [Ping timeout: 264 seconds]
helge has joined #ruby
m_antis has joined #ruby
u0_a115 has quit [Ping timeout: 245 seconds]
Pixi has quit [Ping timeout: 264 seconds]
u0_a115 has joined #ruby
ox1eef_ has quit [Server closed connection]
hrberg has quit [Server closed connection]
hrberg has joined #ruby
yziquel has joined #ruby
myappie has quit [Server closed connection]
myappie has joined #ruby
u0_a115 has quit [Ping timeout: 245 seconds]
Momentum has quit [Server closed connection]
Momentum has joined #ruby
u0_a115 has joined #ruby
jetchisel has quit [Server closed connection]
jetchisel has joined #ruby
asio has quit [Server closed connection]
asio has joined #ruby
slurpyb has quit [Remote host closed the connection]
szahid has quit [Server closed connection]
szahid has joined #ruby
szahid has joined #ruby
szahid has quit [Changing host]
<leah2>
i once shook matz's hand
<dviola>
wow
stackmystack has joined #ruby
<leah2>
euruko 2012 in amsterdam i think
<stackmystack>
Hello, I have a question regarding extension development. I have an extension already developed, but I need to add an advanced feature. Anyone in here that can help?
<stackmystack>
Summary: My extension builds and compiles normally with system libs, even with libs that I download (through git or curl) then compile. I am able to link against them, and everything works. My problem is in the second option.
<stackmystack>
The compilation process links against the 3rd party lib's `so` file, but then it's disregarded when the compilation is done. Now any invocation of the lib will try to access the system `so`, not the one it was compiled against.
<stackmystack>
So what I'd like to do is "copy" the compiled `so` / include it in the final gem so I could do a `dlopen` on it and load it instead of loading that of the system.
balo_ has quit [Server closed connection]
balo has joined #ruby
slurpyb has joined #ruby
slurpyb has quit [Max SendQ exceeded]
u0_a115 has quit [Ping timeout: 268 seconds]
slurpyb has joined #ruby
u0_a115 has joined #ruby
<leah2>
stackmystack: you want to set the rpath i think
schne1der has joined #ruby
patrick has quit [Killed (zinc.libera.chat (Nickname regained by services))]
patrick__ has joined #ruby
<stackmystack>
rpath is for when you know where the downloaded thing is. Well actually I can just dlopen on the file, and that's a non-issue.
<stackmystack>
My problem is with the `mkmf` part and how to package the dylib with the rest of the sources so that at runtime I could load it.
<stackmystack>
Here's the other explanation I gave somewhere else:
<stackmystack>
Great. I will explain my problem.
<stackmystack>
I wrote an extension for a library. I have 2 modes: using sys libs, and using downloaded libs.
<stackmystack>
Both of those mode work: compile -> install the gem is fine.
<stackmystack>
But when it comes to runtime:
<stackmystack>
Using system lib: the extension just uses the installed lib
<stackmystack>
Using downloaded lib: the extension builds against the downloaded sources, but I am unable to package the produced so/dylib so I could do a dlopen on it and force load it instead of the system lib.
<stackmystack>
How can I instruct the building process (mkmf + rake-compiler) to bundle the compiled dynamic lib with the rest of the files (.rb, .bundle, etc) so I could load it manually at runtime?
patrick has joined #ruby
patrick has quit [Remote host closed the connection]
patrick__ is now known as patrick
patrick__ has joined #ruby
Jordan has quit [Server closed connection]
Jordan has joined #ruby
patrick__ has quit [Changing host]
patrick has joined #ruby
patrick is now known as Guest9877
Guest9877 has quit [Killed (tungsten.libera.chat (Nickname regained by services))]
patrick__ has joined #ruby
f4z4 has quit [Server closed connection]
f4z4 has joined #ruby
u0_a115 has quit [Ping timeout: 246 seconds]
hernan has quit [Server closed connection]
hernan has joined #ruby
kapil has quit [Server closed connection]
kapil has joined #ruby
yziquel has quit [Quit: Ping timeout (120 seconds)]
parzzix has quit [Server closed connection]
parzzix has joined #ruby
desnudopenguino has joined #ruby
slurpyb has quit [Remote host closed the connection]
u0_a115 has joined #ruby
yziquel has joined #ruby
ringo___ has quit [Server closed connection]
ringo___ has joined #ruby
parimek has quit [Ping timeout: 268 seconds]
u0_a115 has quit [Ping timeout: 252 seconds]
constellati0n has quit [Ping timeout: 268 seconds]
cxl has quit [Server closed connection]
cxl has joined #ruby
stackmystack has quit [Ping timeout: 250 seconds]
graemefawcett has quit [Server closed connection]
graemefawcett has joined #ruby
ox1eef_ has joined #ruby
olspookishmagus has quit [Server closed connection]
olspookishmagus has joined #ruby
CRISPR has joined #ruby
JayDoubleu____ has quit [Ping timeout: 258 seconds]