pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: USE_NATIVE_GCC and CC and CXX overrides
On Tue, 17 Sep 2024 17:15:46 +0100
Sad Clouds <cryintothebluesky%gmail.com@localhost> wrote:
> For quite a long time I used to have my own GCC wrapper scripts in
> mk.conf:
>
> PKGSRC_COMPILER= gcc
> USE_NATIVE_GCC= yes
> BUILD_ROOT= /opt/netbsd
> CC= ${BUILD_ROOT}/scripts/gcc
> CXX= ${BUILD_ROOT}/scripts/g++
>
> However it seems with pkgsrc-2024Q2 this no longer works and during
> package builds, CC and CXX are ignored and it points gcc to
> /usr/bin/gcc instead:
>
> ls -l ./pkgtools/cwrappers/work.rp3/.gcc/bin
> total 0
> lrwxr-xr-x 1 root wheel 3 Sep 17 16:01 c++ -> g++
> lrwxr-xr-x 1 root wheel 3 Sep 17 16:01 cc -> gcc
> lrwxr-xr-x 1 root wheel 12 Sep 17 16:01 cpp -> /usr/bin/cpp
> lrwxr-xr-x 1 root wheel 12 Sep 17 16:01 g++ -> /usr/bin/g++
> lrwxr-xr-x 1 root wheel 12 Sep 17 16:01 gcc -> /usr/bin/gcc
>
> Any idea what has changed over the years?
OK, looks like if I have /opt/netbsd/script directory first in my PATH
then all is good:
ls -l ./pkgtools/cwrappers/work.rp3/.gcc/bin/
total 0
lrwxr-xr-x 1 root wheel 3 Sep 17 17:23 c++ -> g++
lrwxr-xr-x 1 root wheel 3 Sep 17 17:23 cc -> gcc
lrwxr-xr-x 1 root wheel 23 Sep 17 17:23 g++ -> /opt/netbsd/scripts/g++
lrwxr-xr-x 1 root wheel 23 Sep 17 17:23 gcc -> /opt/netbsd/scripts/gcc
So why does it matter if gcc executable is in the path, when the
full path is explicitly set in mk.conf?
Home |
Main Index |
Thread Index |
Old Index