Here is the patch with the ld option check as well. 

I had to make a few changes to Ron's original patch.  One of the problems was that CFLAGS was being set as a := in the Makefile and was overwriting the += that was in Makefile.settings.  So I added DISTRO_CFLAGS and DISTRO_LFLAGS for the two additonal flags.  The reason for two was that the build-id option is only used during linking and generated warnings if used on a compile line and was not being pulled in for the linker lines.  These defines were added to the appropriate places in the Makefile via the Config.lb file.



/*********************
Marc Karasek
MTS
Sun Microsystems
mailto:marc.karasek@sun.com
ph:770.360.6415
*********************/


ron minnich wrote:
On Jan 3, 2008 10:33 AM, Marc Karasek <Marc.Karasek@sun.com> wrote:

  
I could add the check to this patch (using awk to check ld) to add the
-Wl option to the EXTRA_CFLAGS.
    

cool! I'll take it and add it.

ron