summaryrefslogtreecommitdiff
path: root/cross/ppc-morphos-gcc-11/patches/patch-gcc_config_rs6000_morphos.h
blob: bcc556388d27b500c7551d75f6cfddb3d4c75259 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-gcc_config_rs6000_morphos.h,v 1.1 2022/10/17 13:25:31 js Exp $

Don't try to unconditionally pull in -latomic - it will make the bootstrap
compiler require -latomic, which of course means we can never have a compiler
to build libatomic.

--- gcc/config/rs6000/morphos.h.orig	2022-10-17 11:41:30.695278835 +0000
+++ gcc/config/rs6000/morphos.h
@@ -258,7 +258,7 @@ mclib=default|!mclib=*: %(endfile_morpho
 
 
 #undef LIB_SPEC
-#define LIB_SPEC "%{!nostdlib: -L/gg/lib -L/gg/usr/lib} --start-group -lc -labox -laboxstubs -lsavl -latomic %{mclib=libnix: -lauto} %{pthread:-lpthread} --end-group"
+#define LIB_SPEC "%{!nostdlib: -L/gg/lib -L/gg/usr/lib} --start-group -lc -labox -laboxstubs -lsavl %{mclib=libnix: -lauto} %{pthread:-lpthread} --end-group"
 
 #undef SUBTARGET_EXTRA_SPECS
 #define SUBTARGET_EXTRA_SPECS \