Hi,

lejeczek via users wrote:
> Do you know how to override %optflags?
>
> I've been fiddling with it but have failed to affect the
> definition of this macro.

Have you read through this documentation?

https://src.fedoraproject.org/rpms/redhat-rpm-config/blob/rawhide/f/buildflags.md

You can set defaults for many of these in the various macros
files documented in the Macro Configuration section of
rpm(8) for local builds, e.g.:

    %build_cflags -O2 -g -march=x86-64-v3

Or in /etc/mock/site-defaults.cfg or ~/.config/mock.cfg for
mock builds, e.g.:

    config_opts['macros']['%build_cflags'] = "..."

I think you may have asked on the devel list and suggested
you were looking to build with a different compiler?  If so,
one of the %build_cc or %toolchain macros might be what you
really want.

But, at the least, the buildflags.md probably provides some
decent tips to get you further along.

-- 
Todd

Attachment: signature.asc
Description: PGP signature

-- 
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to