Re: Build flag injection for qmake

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

 



Florian Weimer wrote:

> On 01/24/2018 07:18 PM, Rex Dieter wrote:
>> Rex Dieter wrote:
>> 
>>> Rex Dieter wrote:
>>>
>>>> Florian Weimer wrote:
>>>>
>>>>> I have a package which indirectly calls qmake (from Qt5).  Is there a
>>>>> way to inject the standard build flags using environment variables, or
>>>>> do I have to patch the invocation of the qmake command itself to pass
>>>>> the flags, similar to what %{qmake_qt5} does?
>>>>
>>>> %{qmake_qt5} already does that in general.   it will use any existing
>>>> values for environment variables CFLAGS, CXXFLAGS, LDFLAGS.
>>>>
>>>> In short, set CFLAGS, CXXFLAGS, and/or LDFLAGS prior to calling
>>>> %{qmake_qt5}
>>>
>>> Oh, *indirectly* calls qmake, that may be trickier.  Which package?
> 
> pcp: https://bugzilla.redhat.com/show_bug.cgi?id=1538187
...
> I don't want to copy this solution in the dozen or so packages which
> need this (and I probably would have missed QMAKE_STRIP).  Surely it
> would make sense to provide a generic solution?

If something is needed more broadly, I agree.   I'll take a closer look at 
pcp and see if I can come up with a better generic solution.

-- Rex
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx




[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