Re: Defining build options based on available compiler version

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 30 Jul 2011 11:50:51 -0500
Richard Shaw <hobbes1069@xxxxxxxxx> wrote:
> I'm just guessing here, but I think because of the dots it's returning
> a string instead of a number which makes the >= comparison invalid. Is
> there another gcc option that will give you a "dotless" version
> number?
> 
> I would try something like:
> 
> %global gccver %(gcc -dumpversion | sed "s/\.//g")
> %if %{gccver} >= 460
> foo here
> %endif

I'm guessing, too, that the issue has to do with strings vs numbers.
The above version also fails with "parseExpressionBoolean returns -1".
-- 
Jussi Lehtola
Fedora Project Contributor
jussilehtola@xxxxxxxxxxxxxxxxx
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux