Tom Horsley wrote: > I would like to build a copy of gdb from the source, but > I want to build it without the optimizer turned on and > with -g turned on. Is there a simple way to thwart the > default build rules when using rpmbuild with a source > rpm?
You could override %optflags (aka $RPM_OPT_FLAGS) from the command
line via --define 'optflags YOUR_OPTIONS_HERE' or twiddle the CFLAGS
setting in the rpm build section to add/remove flags you don't want.
For reproducibility, I'd recommend doing this in the spec file rather
than via the command line. Otherwise, you could forget what you've
done a few months down the road. :)
--
Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The cynics are right nine times out of ten.
-- H. L. Menchen (1880-1956)
pgp8zuljpa3bp.pgp
Description: PGP signature
-- fedora-list mailing list [email protected] To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
