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

Discussion in 'Ruby' started by schottstaedt@gmail.com, Jul 16, 2013.

  1. Guest

    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).
    , Jul 16, 2013
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Christoph
    Replies:
    2
    Views:
    517
    Richard Bos
    Sep 17, 2003
  2. Douglass Turner
    Replies:
    2
    Views:
    2,013
    Manfred Bartz
    Sep 4, 2003
  3. Raman
    Replies:
    5
    Views:
    1,019
    Raman
    May 9, 2008
  4. Corinna Vinschen
    Replies:
    1
    Views:
    143
    Corinna Vinschen
    Feb 27, 2007
  5. Greg Hauptmann
    Replies:
    4
    Views:
    187
    Stefano Crocco
    Feb 7, 2009
Loading...

Share This Page