I have come up with a awk script that could be used in the makefile to query the ld version and make a decision based the output to add the compile option or not. I have attached the script and will incorporate it into the makefile and send a patch out hopefully today.
/********************* Marc Karasek MTS Sun Microsystems mailto:marc.karasek@sun.com ph:770.360.6415 *********************/
Ed Swierk wrote:
On 12/7/07, Uwe Hermann uwe@hermann-uwe.de wrote:
We should make sure this doesn't break any other distros / compiler versions. Do all reasonably new gcc/ld versions know about '--build-id'?
The Fedora Core 6 version of ld (2.17.50.0.6-5.fc6) doesn't support it. Not sure if that qualifies as reasonably new, but we're still using it.
--Ed