ruby.pc --libs incorrect if ruby not built with --enable-shared

S

schottstaedt

If I build ruby from source without --enable-shared (any version
I've tried including 2.0.0-p247), the pc Libs line is incorrect:

/home/bil/ pkg-config ruby-2.0 --libs
-Wl,-R -Wl,/usr/local/lib -L/usr/local/lib -lpthread -lrt -ldl -lcrypt -lm

(I think it needs some reference to libruby-static.a).


If I build again with --enable-shared, it's ok:

/home/bil/ pkg-config ruby-2.0 --libs
-Wl,-R -Wl,/usr/local/lib -L/usr/local/lib -lruby -lpthread -lrt -ldl -lcrypt -lm


(I tried to report this through the bug tracker at rubyforge, but
it won't let me login).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top