Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #6852

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

Newsgroups comp.lang.ruby
Date 2013-07-16 04:39 -0700
Message-ID <63f6db39-914f-4587-8d1d-6105946db189@googlegroups.com> (permalink)
Subject ruby.pc --libs incorrect if ruby not built with --enable-shared
From schottstaedt@gmail.com

Show all headers | View raw


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).

Back to comp.lang.ruby | Previous | Next | Find similar


Thread

ruby.pc --libs incorrect if ruby not built with --enable-shared schottstaedt@gmail.com - 2013-07-16 04:39 -0700

csiph-web