diff options
author | Anthony Barbier <anthony.barbier@arm.com> | 2018-07-11 16:46:54 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:54:54 +0000 |
commit | 2ec14f5a52d28eded07ddd015a188f8e691227d7 (patch) | |
tree | 8cddd8e36e757f238578cb5a5b04b077a7416311 /SConstruct | |
parent | 67fd4e8418620d83df8a9ebfd801984b4452beb8 (diff) | |
download | ComputeLibrary-2ec14f5a52d28eded07ddd015a188f8e691227d7.tar.gz |
COMPMID-1246: Disable -pie and -static-libstdc++ when compiling with clang
Remove the following warning: clang50++: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument]
Change-Id: Ifdd53d5cc48542e8bd6b9728c5fdc519ab2c9f06
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/139619
Tested-by: Jenkins <bsgcomp@arm.com>
Reviewed-by: Pablo Tello <pablo.tello@arm.com>
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct index ccc92168e9..d386d978da 100644 --- a/SConstruct +++ b/SConstruct @@ -195,14 +195,16 @@ if not GetOption("help"): if env['standalone']: env.Append(CXXFLAGS = ['-fPIC']) - env.Append(LINKFLAGS = ['-static-libgcc','-static-libstdc++']) + if 'clang++' not in cpp_compiler: + env.Append(LINKFLAGS = ['-static-libgcc','-static-libstdc++']) if env['Werror']: env.Append(CXXFLAGS = ['-Werror']) if env['os'] == 'android': env.Append(CPPDEFINES = ['ANDROID']) - env.Append(LINKFLAGS = ['-pie', '-static-libstdc++']) + if 'clang++' not in cpp_compiler: + env.Append(LINKFLAGS = ['-pie', '-static-libstdc++']) elif env['os'] == 'bare_metal': env.Append(LINKFLAGS = ['-static']) env.Append(LINKFLAGS = ['-specs=rdimon.specs']) |