Obsolete golang-120
[oi-userland.git] / components / developer / make / patches / 01-gcc.patch
blob9a1894ad3520a4ce2d5eb1214ba31183407d7088
1 The native compiler on OpenIndiana is gcc. Modify GNU make to suit.
2 We don't define GCC_IS_NATIVE since this also modifies the native
3 lex and yacc defitions and makes the POSIX tests fail.
5 This patch is taken from OmniOS on May 9th, 2021
6 diff -wpruN '--exclude=*.orig' a~/src/default.c a/src/default.c
7 --- a~/src/default.c 1970-01-01 00:00:00
8 +++ a/src/default.c 1970-01-01 00:00:00
9 @@ -529,9 +529,9 @@ static const char *default_variables[] =
10 # endif /* __MSDOS__ */
11 "OBJC", "gcc",
12 #else
13 - "CC", "cc",
14 + "CC", "gcc",
15 "CXX", "g++",
16 - "OBJC", "cc",
17 + "OBJC", "gcc",
18 #endif
20 /* This expands to $(CO) $(COFLAGS) $< $@ if $@ does not exist,