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

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:
    703
    Richard Bos
    Sep 17, 2003
  2. Douglass Turner
    Replies:
    2
    Views:
    2,336
    Manfred Bartz
    Sep 4, 2003
  3. Raman
    Replies:
    5
    Views:
    1,374
    Raman
    May 9, 2008
  4. David Garamond
    Replies:
    9
    Views:
    278
    David Garamond
    Mar 6, 2004
  5. Dick Davies
    Replies:
    10
    Views:
    294
    Dick Davies
    May 4, 2004
  6. Phil Tomson
    Replies:
    0
    Views:
    204
    Phil Tomson
    May 10, 2004
  7. Corinna Vinschen
    Replies:
    1
    Views:
    231
    Corinna Vinschen
    Feb 27, 2007
  8. Greg Hauptmann
    Replies:
    4
    Views:
    461
    Stefano Crocco
    Feb 7, 2009
Loading...