Would there be any objection to cleaning this up by the following: Four makefile options, shared across ALL generated makefiles, configured in the osconf.m4
KDBG KOPT KOPT_FORCED DBG OPT OPT_FORCED And add --with[out]-optimization and --with[out]-debug. The _FORCED would always have the standard optimization/debug flag for that platform for the cases like in the linux kernel where it has to be compiled with optimization. (Does libafs require that anywhere?) STRIP would get set to do nothing if DBG was non-empty. -- Nathan ------------------------------------------------------------ Nathan Neulinger EMail: [EMAIL PROTECTED] University of Missouri - Rolla Phone: (573) 341-4841 Computing Services Fax: (573) 341-4216 > -----Original Message----- > From: Neulinger, Nathan > Sent: Thursday, January 09, 2003 11:34 AM > To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED] > Subject: RE: [OpenAFS-devel] Compiling and running OpenAFS > both optimized and debugged > > > You're going to have to change it in several places... the > makefiles are not quite yet consistent. > > I don't remember every place you have to do it. Are you > concerned about purely user space code, or kernel module as well? > > -- Nathan > > ------------------------------------------------------------ > Nathan Neulinger EMail: [EMAIL PROTECTED] > University of Missouri - Rolla Phone: (573) 341-4841 > Computing Services Fax: (573) 341-4216 > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, January 09, 2003 11:26 AM > > To: [EMAIL PROTECTED] > > Subject: [OpenAFS-devel] Compiling and running OpenAFS both > > optimized and debugged > > > > > > > > In order to obtain the maximum amount of debugging information from > > failure in our production environment, I want to build OpenAFS 1.2.8 > > with at least -g, and if it works, also with -O, and also > ensure that > > the installed binaries are NOT stripped. > > > > I can't find an easy way to do this. > > > > It would appear that turning off stripping is simply a matter of > > setting > > > > STRIP = /bin/true > > > > in the appropriate Makefile.sysname, but its not clear to me how to > > get debugging and optimization simultaneously. I can see that both > > are defined: > > > > OPTMZ=-O > > DBG=-g > > > > but I can NOT figure out the "right way" to get each > invocation of CC > > to use these. INfact, I can't figure out how to get a debugging > > version at *all*, let alone both debugged and optimized. > > > > Now, I suppose I can cheat, and set > > > > OPTMZ=-g > > > > but then I'll just get a debugging version, without optimization (my > > second preference). > > > > A search of the TWiki and the openafs-devel archives didn't turn up > > the answer. > > > > What's the trick????? > > _______________________________________________ > > OpenAFS-devel mailing list > > [EMAIL PROTECTED] > > https://lists.openafs.org/mailman/listinfo/openafs-devel > > > _______________________________________________ OpenAFS-devel mailing list [EMAIL PROTECTED] https://lists.openafs.org/mailman/listinfo/openafs-devel
