[Interest] How to create local mkspec for gcc5 compiler

Julius Bullinger Julius.Bullinger at asctec.de
Thu Mar 10 14:28:34 CET 2016


Hello Roland,

one thing I’m doing as a workaround in this situation is changing the default compiler via the alternative system:

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5
sudo update-alternatives --config gcc


From this point forward, the only thing required when switching compilers is this (relatively) simple command:

sudo update-alternatives --config gcc

Adapt the path to OpenSUSE’s g++ accordingly. Keep in mind that this changes the default compiler, and you cannot change it only for a single project.

Best regards,
Julius

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160310/770193a8/attachment.html>


More information about the Interest mailing list