On Mon, Dec 02, 2002, Vinod Kutty wrote:

> [...]
>  %l_cc                    %{l_tool_locate cc}
> to:
>  %l_cc                    /usr/local/bin/gcc
>
> I was then able to compile make, then gcc-3.2 from src.rpm files at
> ftp.openpkg.org. After that, I reverted the above change in rpmmacros to
> the original, and I was able to build rsync (libtool picked up
> /usr/local/opkg/bin/cc, which seems to be a hard link to the same
> binary as /usr/local/opkg/bin/gcc).
>
> So,
>       - is there a better way to do this?
>       - Could I have simply symlink'd /usr/local/opkg/bin/cc to
>         /usr/local/bin/gcc ?
>       - is there a 'from source' tutorial or other docs that I should've
>         read or should read?

The official way is to use:

$ rpm --rebuild --define "with_cc /usr/local/bin/gcc" rsync-*.src.rpm

This on-the-fly overrites the l_cc variable. I think we should add this
to the FAQ and/or the handbook because it certainly is the main pitfall
in bootstrapping on Solaris.
                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
User Communication List                      [EMAIL PROTECTED]

Reply via email to