On Tuesday, 13 February 2018 at 14:27, Florian Weimer wrote:
On 02/13/2018 11:36 AM, Daniel P. Berrangé wrote:
> redhat-rpm-config flags have usually been compatible with both gcc and
> clang, so if there's no newer clang that supports this, it feels like
> we've a few options
>
> 1. Have the RPM spec for apps using clang filter these flags out of
> the RPM cflags.
> 2. Revert the change in redhat-rpm-config so we're compatible with
> clang
> 3. Provide a second macro in redhat-rpm-config that is the cut down
> set of cflags which still work with clang, that apps can opt for.
You forgot:
4. Compile the package with GCC (porting it if necessary).
GCC is the Fedora system compiler, after all.
The Packaging Guidelines say this, too:
https://fedoraproject.org/wiki/Packaging:Guidelines#Compiler
Regards,
Dominik
--
Fedora
https://getfedora.org | RPMFusion
http://rpmfusion.org
There should be a science of discontent. People need hard times and
oppression to develop psychic muscles.
-- from "Collected Sayings of Muad'Dib" by the Princess Irulan