From 8705c01f5a811609322a3004e187e767c102ae03 Mon Sep 17 00:00:00 2001 From: Marcelo Fernandez Date: Mon, 12 Nov 2018 10:24:44 -0300 Subject: [PATCH] Fix compile recent compile issues with gcc 5.5 --- platform/x11/detect.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/x11/detect.py b/platform/x11/detect.py index dc5c22b4b3b..e257a20bdd0 100644 --- a/platform/x11/detect.py +++ b/platform/x11/detect.py @@ -149,7 +149,7 @@ def configure(env): env.Append(CCFLAGS=['-pipe']) env.Append(LINKFLAGS=['-pipe']) - # Check for gcc version > 4 before adding -no-pie + # Check for gcc version > 5 before adding -no-pie import re import subprocess proc = subprocess.Popen([env['CXX'], '--version'], stdout=subprocess.PIPE) @@ -157,7 +157,7 @@ def configure(env): match = re.search('[0-9][0-9.]*', stdout) if match is not None: version = match.group().split('.') - if (version[0] > '4'): + if (version[0] > '5'): env.Append(CCFLAGS=['-fpie']) env.Append(LINKFLAGS=['-no-pie'])