On Mon, Aug 16, 2021 at 3:32 PM Julian Sikorski <belegdol@xxxxxxxxx> wrote: > > W dniu 16.08.2021 o 21:24, Neal Gompa pisze: > > On Mon, Aug 16, 2021 at 3:14 PM Julian Sikorski <belegdol@xxxxxxxxx> wrote: > >> > >> Hi, > >> > >> mame needs to have the symbols level reduced to -g1 or the compilation > >> will fail due to relocation overflows and generally excessive memory and > >> disk space usage. Right now this is taken care of by editing $RPM_OPT_FLAGS: > >> https://src.fedoraproject.org/rpms/mame/blob/30873dfe8d2ab851bb018b7a104916aaa3d39718/f/mame.spec#_236 > >> Upstream are considering switching to cmake, which is going to render > >> this approach inoperable. Is there a preferred way of editing the flags > >> used by %cmake macro? Thanks! > >> > > > > Overriding the %build_cflags and %build_cxxflags macros is sufficient here. > > > > > > > Thanks! And what is the recommended way of doing this? Just defining it > in the spec? > The advantage of the approach used until now is that it only drops -g(2) > to -g1, leaving other flags intact. > Do it the same way you're doing it now, just change $() for %(). -- 真実はいつも一つ!/ Always, there's only one truth! _______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx 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/devel@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure