pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Using pkgsrc gcc



On 2019-08-18 20:05, mueller6725%twc.com@localhost wrote:
from Robert Swindells:

How do you make a package use gcc from pkgsrc ?
Tried setting the following but it is still using /usr/bin/gcc.
USE_PKGSRC_GCC= yes
USE_NATIVE_GCC= no
GCC_REQD+=      8
Correcting a little slip on my part:

I believe you would have to adjust PATH, but notice that gcc packages seem to be installed to a subdirectory of /usr/pkg, like /usr/pkg/gcc5 or /usr/pkg/gcc5-aux : not part of the normal PATH.  You would have to put /usr/pkg/gcc5-aux/bin, or /usr/pkg/gcc5/bin , etc, as the case may be, at the front of the PATH, ahead or /usr/bin .

Tom

It should not be necessary to manually tweak PATH - setting GCC_REQD should be all it takes.

It might help to provide more info, such as what indicates to you that it's using /usr/bin/gcc, what operating system you're running, your mk.conf, etc.

Regards,

    JB



Home | Main Index | Thread Index | Old Index