From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,88898ece838963b6 X-Google-Attributes: gid111c93,public From: Tony Hammitt Subject: Re: compiling with ccc/cxx Date: 2000/05/24 Message-ID: <392C1F75.7F8F094E@kc.rr.com>#1/1 X-Deja-AN: 626833577 Content-Transfer-Encoding: 7bit References: <392B3A2C.8B0CB68@hotmail.com> <392C0580.6987CEFB@saunalahti.fi> <392C12E9.5FAD6C83@hotmail.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@rr.com X-Trace: typhoon.kc.rr.com 959192950 24.94.177.44 (Wed, 24 May 2000 13:29:10 CDT) MIME-Version: 1.0 Reply-To: thammitt@kc.rr.com NNTP-Posting-Date: Wed, 24 May 2000 13:29:10 CDT Newsgroups: comp.os.linux.alpha "William A. Welch III" wrote: > > > some programs want -g added ,use -g3 instead of -g on ccc/cxx > > I have seen ccc complain about this when I have "-fast" in my CFLAGS. > Of course just adding -g3 doesn't always help since sometimes "-g" is > built into the autoconf files and you end up getting lines like: > > ccc -arch ev56 -fast -g3 -DSOMETHING -g -DSOMETHING_ELSE ... > cc: Info: File not optimized; use -g3 if both optimization and debug > wanted. > > What's the best work around here? > > Bill What I've ended up doing in trying to build from srpms is installing the srpm, doing a rpm -bi , opening up the makefile in the redhat/BUILD file, finding the offending makefile define variable, then saying something like: make CC=ccc CCOPTIONS="-O4 -fast" DEFGDB="-DGDB -DCREATE_IO_WINDOW" this was what I had to change in the spec file for xxgdb to get it to work. DEFGDB used to equal "-DGDB -DCREATE_IO_WINDOW -g", so redefining it got rid of the problem... Then do a 'rpm -ba ' to build the s/rpm files. There is no reason to include debugging symbols in a distribution binary, IMHO. Please note everyone: the -fast option optimizes for _your_ hardware so we need to make it explicit that there is an EV56 and an EV6 version to be the result of this effort. Once we find someone with an EV6 box who wants to help, that is... Either that or we'll have to have more versions of the specfiles so we can just build anywhere. I've got about 10 S/RPMS so far. Getting them working is getting faster but it's nontrivial. Still no idea if the process can be automated. We will obviously need a place to put the archives of generated rpms so people can test them. This is all assuming that people want a redhat based optimized distro, which may not be true. Other options/ opinions are welcome. Regards, Tony Hammitt