On Wed, Mar 16, 2005, Karl Vogel wrote:

> Rebuilding ruby gives:
>
> ld -shared -expect_unresolved "*"  -L"../.." -o curses.so curses.o
> -lncurses -ltermcap  -lm   -lc
> ld:
> Can't locate file for: -lncurses
> make: *** [curses.so] Error 1
> [dev:medusa] /openpkg/RPM/TMP/ruby-1.8.2/ext/curses
>
> Which shows the ruby extensions are picking up system libraries instead of
> OpenPKG libs. Following patch fixes it
>
> --- ruby.spec~  2005-02-21 18:02:32 +0100
> +++ ruby.spec   2005-03-16 17:43:15 +0100
> @@ -70,6 +70,7 @@
>      CFLAGS="%{l_cflags -O} %{l_cppflags}" \
>      ./configure \
>          --prefix=%{l_prefix} \
> +        --with-ldflags=%{l_ldflags} \
>          --disable-shared
>      %{l_make} %{l_mflags}

Comitted to OpenPKG-CURRENT:
http://cvs.openpkg.org/chngview?cn=22621
Thanks.

                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com

______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Developer Communication List                   openpkg-dev@openpkg.org

Reply via email to