[LinuxBIOS] [Fwd: Re: Patch file for Fedora 8 compile problems]

Marc Karasek Marc.Karasek at Sun.COM
Mon Dec 17 21:16:40 CET 2007

So how about this

(ld --help) | awk '{for (i=1;i<=NF;i++) if ($i ~ /build-id/){n++} }; END 
{print n}'

This will return a 1 if it finds the string build-id in the ld help. 

Marc Karasek
Sun Microsystems
mailto:marc.karasek at sun.com

Uwe Hermann wrote:
> On Mon, Dec 17, 2007 at 02:55:35PM -0500, Marc Karasek wrote:
>> That would work, but this brings up a rather interesting point.  What 
>> are we todo about all the other Distros?   At some point (if not 
>> already) they will also face a similar issue.
> Yep, true. The correct thing IMO is to check for the actual feature/bug,
> not for version number strings of compilers or programs or distros.
> Uwe.

More information about the coreboot mailing list