Sam Hartman <hartm...@debian.org> writes: > I'd rather find a more clever solution. > Is there any way to map back from CC to something useful as an > installation architecture? > I'd prefer something that worked both for gcc and llvm.
gcc -print-multiarch will give you what I think is the path component we use, although I'm not 100% sure that we always use that value. I don't see an equivalent for clang, but: clang -print-search-dirs | sed 's/:/\n/g' | egrep '^/lib/[^/]+$' | sed 's%.*/%%' should do it. > My hope is to do something like > * install krb5-config.mit > * have that be a script that calls krb5-config.mit.tripple > * Each package only includes krb5-config.mit.tripple for the appropriate > architecture. Yeah, I was trying to figure out how to make something like that work, and I think that might be the best approach. -- Russ Allbery (r...@debian.org) <http://www.eyrie.org/~eagle/>