On Dienstag, 3. April 2018 14:41:30 Andreas Schwab wrote:
On Apr 03 2018, Hans-Peter Jansen <hpj@urpla.net> wrote:
Well, I find it a bit expensive to rebuild two gcc packages (in worst case) just for changing the compiler, but possibly the way to go.
There is only one package named gcc.
Duh, of course. Thanks, Jan and Andreas. For the record: In order to change the default gcc for a project, do this: Provide the gcc build in a repo, and add this repo to your upstream repos in the project meta data, e.g.: <repository name="openSUSE_Leap_42.3"> <path project="home:xxx:gcc" repository="openSUSE_Leap_42.3"/> <path project="openSUSE:Leap:42.3:Update" repository="standard"/> <arch>x86_64</arch> </repository> Add this to prjconf: # change to gcc7 %define gcc_version 7 Preinstall: !libgcc_s1 libgcc_s1-gcc7 Prefer: -libstdc++6 libstdc++6-gcc7 Prefer: -libtsan0 libtsan0-gcc7 Prefer: -libgomp1 libgomp1-gcc7 Prefer: -libgcc_s1 libgcc_s1-gcc7 Prefer: -libatomic1 libatomic1-gcc7 Prefer: -libcilkrts5 libcilkrts5-gcc7 Prefer: -libitm1 libitm1-gcc7 Prefer: -liblsan0 liblsan0-gcc7 Prefer: -libmpx2 libmpx2-gcc7 Prefer: -libubsan0 libubsan0-gcc7 link gcc package into your project, adjust gcc_version and gcc_suffix in the spec: %define gcc_version 7 %define gcc_suffix 7 Version: 7 Cheers, Pete -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org