Subject: Re: pkg/30234: IRIX: PKGSRC_COMPILER=gcc uses mk/wrapper/, butcalls/usr/bin/cc
To: Jared D. McNeill <>
From: Georg Schwarz <>
List: pkgsrc-bugs
Date: 05/15/2005 21:17:35
> When the package calls 'cc', our wrapper gets called. Shouldn't our wrapper be smart
> enough to look at PKGSRC_COMPILER, and realize that when 'cc -version' is called that
> it outputs 'MIPSpro Compilers: Version 7.30', then start searching other names (gcc

I hope that the wrapper will never be that "smart", i.e. bloated.

> seems like it would be an obvious one to check if PKGSRC_COMPILER=gcc). Surely that's
> not a package bug, but a wrapper bug.

The way the wrappers find the real target (by searching some shell paths)
is broken IMHO. I think jlam is planning to address this once he has
stabelized the new tools framework. In my opinion there ought to be a
way to specify precisely which binary to ultimately call as cc (or ld, or
ar, ...). For the time being to my knowledge you could only resort to
workarounds as described.

Georg Schwarz  +49 178 8545053