How about my awk script I sent out that uses the output from ld --help to see if buildid is and option. This handles the different distro problem.
If I can get some time, I will put together a patch file with the changes to buildtarget to create a makefile.distro using awk to test ld for the buildid option.
/********************* Marc Karasek MTS Sun Microsystems mailto:marc.karasek@sun.com ph:770.360.6415 *********************/
ron minnich wrote:
On Dec 18, 2007 12:51 PM, Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net wrote:
Why not simply compile a small test.c file, look whether the output file contains buildid, and set a Make variable based on that?
I'm not picky about how we figure it out, only that the test be run out of buildtarget, and that it set variables in a makefile that is included.
short form: no running complex tests out of the build process each time, and for sure no setting things Options.lb.
Thanks
ron