build from source rpm question
Todd Zullinger
tmz at pobox.com
Thu May 21 01:37:27 UTC 2009
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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 542 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20090520/d1564dfe/attachment-0001.sig>
More information about the fedora-list
mailing list