|
@@ -2,7 +2,7 @@ import os
|
|
import platform
|
|
import platform
|
|
import sys
|
|
import sys
|
|
from compat import decode_utf8
|
|
from compat import decode_utf8
|
|
-from methods import get_compiler_version
|
|
|
|
|
|
+from methods import get_compiler_version, use_gcc
|
|
|
|
|
|
def is_active():
|
|
def is_active():
|
|
return True
|
|
return True
|
|
@@ -162,10 +162,11 @@ def configure(env):
|
|
env.Append(LINKFLAGS=['-pipe'])
|
|
env.Append(LINKFLAGS=['-pipe'])
|
|
|
|
|
|
# Check for gcc version >= 6 before adding -no-pie
|
|
# Check for gcc version >= 6 before adding -no-pie
|
|
- version = get_compiler_version(env)
|
|
|
|
- if version != None and version[0] > '6':
|
|
|
|
- env.Append(CCFLAGS=['-fpie'])
|
|
|
|
- env.Append(LINKFLAGS=['-no-pie'])
|
|
|
|
|
|
+ if use_gcc(env):
|
|
|
|
+ version = get_compiler_version(env)
|
|
|
|
+ if version != None and version[0] >= '6':
|
|
|
|
+ env.Append(CCFLAGS=['-fpie'])
|
|
|
|
+ env.Append(LINKFLAGS=['-no-pie'])
|
|
|
|
|
|
## Dependencies
|
|
## Dependencies
|
|
|
|
|