Re: Is there convenient way to setup Fedora compilation flags outside of the RPM build?

2023-01-02 Thread Sam Varshavchik
Florian Weimer writes: After installing redhat-rpm-config, this works in bash and similar shells: $ eval `rpm --eval %set_build_flags` Maybe we can make it more clear in buildflags.md that this macro is a shell script fragment? I find it more convenient to generate parameters for an

Re: Is there convenient way to setup Fedora compilation flags outside of the RPM build?

2023-01-02 Thread Vít Ondruch
Dne 02. 01. 23 v 14:09 Florian Weimer napsal(a): * Vít Ondruch: And yes, that is the problem why upstream can't see the issues we see, despite they were so kind to test on Fedora. Luckily, there was analysis of the issue which initially triggered this discussion done by Mamoru [1] and it seem

Re: Is there convenient way to setup Fedora compilation flags outside of the RPM build?

2023-01-02 Thread Florian Weimer
* Vít Ondruch: > And yes, that is the problem why upstream can't see the issues we see, > despite they were so kind to test on Fedora. Luckily, there was > analysis of the issue which initially triggered this discussion done > by Mamoru [1] and it seem that the issue are caused by > LTO.

Re: Is there convenient way to setup Fedora compilation flags outside of the RPM build?

2023-01-02 Thread Vít Ondruch
Dne 24. 12. 22 v 20:49 Florian Weimer napsal(a): * Vít Ondruch: Working with upstream on one issue [1], it seems that the culprit is in the Fedora compiler options. Is there some convenient way to set them up? Of course I can copy them from log, or somehow put together from the RPM macros,

Re: Is there convenient way to setup Fedora compilation flags outside of the RPM build?

2022-12-25 Thread Maxwell G via devel
On Sun Dec 25, 2022 at 09:02 -0500, Sam Varshavchik wrote: > rpm -E '%__global_ldflags' > > is also needed for LDFLAGS. %__global_ldflags is deprecated. You should use %build_ldflags instead[1]. Also, %build_cflags, %build_cxxflags, and friends are preferred to %optflags AFAIK. [1]:

Re: Is there convenient way to setup Fedora compilation flags outside of the RPM build?

2022-12-25 Thread Sam Varshavchik
Vitaly Zaitsev via devel writes: On 23/12/2022 19:21, Vít Ondruch wrote: Working with upstream on one issue [1], it seems that the culprit is in the Fedora compiler options. Is there some convenient way to set them up? rpm -E %optflags rpm -E '%__global_ldflags' is also needed for

Re: Is there convenient way to setup Fedora compilation flags outside of the RPM build?

2022-12-25 Thread Vitaly Zaitsev via devel
On 23/12/2022 19:21, Vít Ondruch wrote: Working with upstream on one issue [1], it seems that the culprit is in the Fedora compiler options. Is there some convenient way to set them up? rpm -E %optflags -- Sincerely, Vitaly Zaitsev (vit...@easycoding.org)

Re: Is there convenient way to setup Fedora compilation flags outside of the RPM build?

2022-12-24 Thread Florian Weimer
* Vít Ondruch: > Working with upstream on one issue [1], it seems that the culprit is in > the Fedora compiler options. Is there some convenient way to set them > up? Of course I can copy them from log, or somehow put together from the > RPM macros, but I'd appreciate if there was some easier

Re: Is there convenient way to setup Fedora compilation flags outside of the RPM build?

2022-12-23 Thread Artur Frenszek-Iwicki
> So you can do > $ eval `rpm -E '%set_build_flags'` > in a script to set the flags that RPM uses. Another solution could be something like: $ gcc $(rpm -E '%optflags') ... $(rpm -E '%build_ldflags') A.FI. ___ devel mailing list --

Re: Is there convenient way to setup Fedora compilation flags outside of the RPM build?

2022-12-23 Thread Elliott Sales de Andrade
On Fri, Dec 23, 2022 at 1:21 PM Vít Ondruch wrote: > > Working with upstream on one issue [1], it seems that the culprit is in > the Fedora compiler options. Is there some convenient way to set them > up? Of course I can copy them from log, or somehow put together from the > RPM macros, but I'd

Is there convenient way to setup Fedora compilation flags outside of the RPM build?

2022-12-23 Thread Vít Ondruch
Working with upstream on one issue [1], it seems that the culprit is in the Fedora compiler options. Is there some convenient way to set them up? Of course I can copy them from log, or somehow put together from the RPM macros, but I'd appreciate if there was some easier way. Can we e.g.