rpmbuild macro for libgcc.a location?

Mitch Bradley wmb at laptop.org
Sat Oct 10 05:19:06 EDT 2009

> Working on an OLPC package (olpc-bios-crypto, which has a reasonable
> chance of being upstreamable when it stabilizes)... we keep appending
> -L lines to make it build in different releases / distros.
> Is there an rpm macro that points to the location of libgcc.a? Or an
> elegant way to get it? (While avoiding autoconf and the like...)
> For example, for F11 I am adding: -L/usr/lib/gcc/i586-redhat-linux/4.4.1/

Jordan Crouse already told me the magic trick:

LIBGCC=`$(CC) -print-libgcc-file-name`

I thought I had already pushed that change up but maybe I forgot to.

More information about the Devel mailing list