Mailinglist Archive: opensuse-packaging (43 mails)

< Previous Next >
Re: [opensuse-packaging] Selecting GCC version
On Saturday 2018-03-31 14:29, Hans-Peter Jansen wrote:

Hi Jan, Christian, all,

On Donnerstag, 30. März 2017 22:08:40 Christian Boltz wrote:
Hello,

Am Donnerstag, 30. März 2017, 12:51:00 CEST schrieb Matthias Fehring:
Simply using BuildRequires gcc5 pulls gcc5 in but still uses gcc48 to
build the package (especially in Build Service).

Besides Jan's way, using a BuiltIgnore could be another option.

Both ways, exyporting CC and defining #BuildIgnore are spec based.
Any idea, how to select another compiler for a whole project in prjconf?

Macros:
%__cc gcc-8
%__cxx g++-8
:Macros


But, because %configure and %cmake for example do not read %__cc
unfortunately (why?!), it in itself has no effect. Some work from
upstream rpm is needed.
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >
List Navigation
Follow Ups
References