Re: build from source rpm question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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)

Attachment: pgpB6UnKLIPI4.pgp
Description: PGP signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux