Blame SOURCES/0001-Avoid-c99-standard-compiler.patch
|
|
c34203 |
From 036562b66fa607152c6c54f0d6d030cd19bfcb7f Mon Sep 17 00:00:00 2001
|
|
|
c34203 |
From: Andreas Arnez <arnez@linux.ibm.com>
|
|
|
c34203 |
Date: Tue, 19 Feb 2019 19:03:52 +0100
|
|
|
c34203 |
Subject: [PATCH 1/8] Avoid c99 standard compiler
|
|
|
c34203 |
|
|
|
c34203 |
When probing for a usable GCC, the existing code already dropped path
|
|
|
c34203 |
names that contained "c89" or "c90", because these compilers don't have
|
|
|
c34203 |
the GCC extensions enabled. This patch also drops names with "c99" in
|
|
|
c34203 |
them.
|
|
|
c34203 |
---
|
|
|
c34203 |
CONFIG/src/atlconf_misc.c | 3 ++-
|
|
|
c34203 |
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
c34203 |
|
|
|
c34203 |
diff --git a/CONFIG/src/atlconf_misc.c b/CONFIG/src/atlconf_misc.c
|
|
|
c34203 |
index 63cb1ef..fb62214 100644
|
|
|
c34203 |
--- a/CONFIG/src/atlconf_misc.c
|
|
|
c34203 |
+++ b/CONFIG/src/atlconf_misc.c
|
|
|
c34203 |
@@ -824,7 +824,8 @@ int CompIsGcc(char *comp)
|
|
|
c34203 |
int i;
|
|
|
c34203 |
|
|
|
c34203 |
cmpname = NameWithoutPath(comp);
|
|
|
c34203 |
- if (strstr(cmpname, "c89") || strstr(cmpname, "c90"))
|
|
|
c34203 |
+ if (strstr(cmpname, "c89") || strstr(cmpname, "c90") ||
|
|
|
c34203 |
+ strstr(cmpname, "c99"))
|
|
|
c34203 |
{
|
|
|
c34203 |
free(cmpname);
|
|
|
c34203 |
return(0);
|
|
|
c34203 |
--
|
|
|
c34203 |
2.23.0
|
|
|
c34203 |
|