Defining build options based on available compiler version

Jussi Lehtola jussilehtola at fedoraproject.org
Sat Jul 30 17:37:28 UTC 2011


On Sat, 30 Jul 2011 20:05:12 +0300
Ville Skyttä <ville.skytta at iki.fi> wrote:

> On 07/30/2011 07:44 PM, Jussi Lehtola wrote:
> 
> > Is there a way to check if the gcc version is sufficient with some
> > rpm macro?
> 
> Do you actually need to have it as a macro?  Often cases like this can
> be handled with plain shell code in %prep, %build, etc.  Or by
> patching the build system to do the check automatically and sending
> the patch upstream.

Yes, since the existence of some subpackages depends on whether the
option is supported or not.
-- 
Jussi Lehtola
Fedora Project Contributor
jussilehtola at fedoraproject.org


More information about the devel mailing list