* Michael Wild <them...@gmail.com>, 2012-07-25, 11:50:
How can I reliably (from a user-program) determine the multiarch-triplet/quadlet without depending on dpkg-dev? I found some talk of a lsb_architecture utility, but so far have found no trace of it...

# gcc -print-multiarch
x86_64-linux-gnu

That's definitely better, but still not optimal since I don't want to require gcc either ;-)

Not only suboptimal, but most likely also wrong. :)

The whole idea of multi-arch is that you can have packages of different architectures installed on a single system. So there's no single "DEB_HOST_MULTIARCH" you could query at run-time.

Perhaps if you explained what exactly you're trying to do, I could give you a better answer. :)


p.s. Not subscribed.

--
Jakub Wilk


--
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120731080640.ga3...@jwilk.net

Reply via email to