home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / gnu / gcc / help / 2056 < prev    next >
Encoding:
Text File  |  1992-09-03  |  1.3 KB  |  30 lines

  1. Newsgroups: gnu.gcc.help
  2. Path: sparky!uunet!stanford.edu!ames!sun-barr!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!fstop.csc.ti.com!fstop!west
  3. From: west@chance.dsg.ti.com (Roger West)
  4. Subject: Imbedding compilation information into binaries
  5. Message-ID: <WEST.92Sep3142709@chance.dsg.ti.com>
  6. Sender: usenet@csc.ti.com
  7. Nntp-Posting-Host: chance.tsd.itg.ti.com
  8. Organization: Texas Instruments, Speech Mushrooms.
  9. Date: Thu, 3 Sep 1992 20:27:09 GMT
  10. Lines: 18
  11.  
  12.  
  13. I'm trying to implement software configuration procedures which automatically
  14. track how binaries are derived from source code.  I'm using RCS keywords to
  15. keep track of which source revision a binary is compiled from, but I also want
  16. to keep track of the compiler version and options that were used.  Using gcc,
  17. part of what I want is provided by the builtin macro __VERSION__, which allows
  18. for something like...
  19.  
  20.     static char rcsid[] = "@(#) $Id$ GCC Version: " __VERSION__;
  21.  
  22. The what(1) command can then be used to show version information.  
  23.  
  24. In order to provide the remaining information I need, I'm considering
  25. implementing a similar builtin macro called __OPTIONS__ which would expand to a
  26. string containing all the compilation options used.  Has anyone already done
  27. this, or solved this traceability problem in some other way?
  28.  
  29. Roger
  30.