tech-pkg archive

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

Re: Using pkgsrc gcc



Jason Bacon <outpaddling%yahoo.com@localhost> wrote:
>On 2019-08-18 13:51, Robert Swindells wrote:
>> 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
>
>GCC_REQD+=major.minor

Doesn't help.

I would like to try to use gcc8 to build lang/openjdk8 on NetBSD-current
to see if it works better on aarch64 than building with g++ 7.4.

I was mainly looking at the files under the work directory for links
to programs under /usr/pkg/gcc8/bin, I don't see any.

The .gcc/bin directory contains:

lrwxrwxr-x  1 rjs  staff   3 Aug 19 10:31 c++ -> g++
lrwxrwxr-x  1 rjs  staff   3 Aug 19 10:31 cc -> gcc
lrwxrwxr-x  1 rjs  staff  12 Aug 19 10:31 cpp -> /usr/bin/cpp
lrwxrwxr-x  1 rjs  staff  12 Aug 19 10:31 g++ -> /usr/bin/g++
lrwxrwxr-x  1 rjs  staff  12 Aug 19 10:31 gcc -> /usr/bin/gcc

And the configure stage of the package prints this:

  configure: Using gcc C++ compiler version 7.4.0 [g++ (nb3 20190319) 7.4.0]


Home | Main Index | Thread Index | Old Index