Re: Overriding default %cmake CXXFLAGS

2021-08-19 Thread Julian Sikorski
W dniu 16.08.2021 o 22:22, Vitaly Zaitsev via devel pisze: On 16/08/2021 21:14, Julian Sikorski wrote: 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. %global optflags %(echo %{op

Re: Overriding default %cmake CXXFLAGS

2021-08-16 Thread Vitaly Zaitsev via devel
On 16/08/2021 22:03, Julian Sikorski wrote: %global build_cflags %(echo $RPM_OPT_FLAGS | sed "s@-g@-g1@") %global build_cxxflags %(echo $RPM_OPT_FLAGS | sed "s@-g@-g1@") Changing optflags is better, because it will affect all build flags at once: C, C++, Fortran, etc. -- Sincerely, Vitaly

Re: Overriding default %cmake CXXFLAGS

2021-08-16 Thread Vitaly Zaitsev via devel
On 16/08/2021 21:14, Julian Sikorski wrote: 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. %global optflags %(echo %{optflags} | sed 's/-g /-g1 /') -- Sincerely, Vitaly Zaitsev

Re: Overriding default %cmake CXXFLAGS

2021-08-16 Thread Julian Sikorski
W dniu 16.08.2021 o 21:33, Neal Gompa pisze: On Mon, Aug 16, 2021 at 3:32 PM Julian Sikorski wrote: W dniu 16.08.2021 o 21:24, Neal Gompa pisze: On Mon, Aug 16, 2021 at 3:14 PM Julian Sikorski wrote: Hi, mame needs to have the symbols level reduced to -g1 or the compilation will fail due

Re: Overriding default %cmake CXXFLAGS

2021-08-16 Thread Neal Gompa
On Mon, Aug 16, 2021 at 3:32 PM Julian Sikorski wrote: > > W dniu 16.08.2021 o 21:24, Neal Gompa pisze: > > On Mon, Aug 16, 2021 at 3:14 PM Julian Sikorski wrote: > >> > >> Hi, > >> > >> mame needs to have the symbols level reduced to -g1 or the compilation > >> will fail due to relocation overfl

Re: Overriding default %cmake CXXFLAGS

2021-08-16 Thread Julian Sikorski
W dniu 16.08.2021 o 21:24, Neal Gompa pisze: On Mon, Aug 16, 2021 at 3:14 PM Julian Sikorski 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 car

Re: Overriding default %cmake CXXFLAGS

2021-08-16 Thread Neal Gompa
On Mon, Aug 16, 2021 at 3:14 PM Julian Sikorski 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: > http

Overriding default %cmake CXXFLAGS

2021-08-16 Thread Julian Sikorski
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/30873dfe8d2ab851bb018b7a