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