aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammed Suhail Munshi <MohammedSuhail.Munshi@arm.com>2021-12-21 11:07:27 +0000
committerGunes Bayir <gunes.bayir@arm.com>2021-12-23 09:40:39 +0000
commitde60ed90fb9ce1f15e785a9b73b2e644c3dc3413 (patch)
treeea8df629d3b7825a00461cb74fd364887157208e
parent2761993cdb5b2f9bb1ca50dc6d803b3f4c4b0f14 (diff)
downloadComputeLibrary-de60ed90fb9ce1f15e785a9b73b2e644c3dc3413.tar.gz
Remove Unusued arguments -pie and -static-libstdc++ in clang80 and clang80++
Resolves: [COMPMID-4977] Change-Id: If44cb02dbb7e537b135c5ade529f41857133423a Signed-off-by: Mohammed Suhail Munshi <MohammedSuhail.Munshi@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/6846 Reviewed-by: Gunes Bayir <gunes.bayir@arm.com> Comments-Addressed: Gunes Bayir <gunes.bayir@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
-rw-r--r--SConscript11
1 files changed, 8 insertions, 3 deletions
diff --git a/SConscript b/SConscript
index afff4e58bc..8d5e60867c 100644
--- a/SConscript
+++ b/SConscript
@@ -92,13 +92,18 @@ def build_objs(sources):
def build_library(name, build_env, sources, static=False, libs=[]):
+ cloned_build_env = build_env.Clone()
+ if env['os'] == 'android' and static == False:
+ cloned_build_env["LINKFLAGS"].remove('-pie')
+ cloned_build_env["LINKFLAGS"].remove('-static-libstdc++')
+
if static:
- obj = build_env.StaticLibrary(name, source=sources, LIBS = arm_compute_env["LIBS"] + libs)
+ obj = cloned_build_env.StaticLibrary(name, source=sources, LIBS = arm_compute_env["LIBS"] + libs)
else:
if env['set_soname']:
- obj = build_env.SharedLibrary(name, source=sources, SHLIBVERSION = SONAME_VERSION, LIBS = arm_compute_env["LIBS"] + libs)
+ obj = cloned_build_env.SharedLibrary(name, source=sources, SHLIBVERSION = SONAME_VERSION, LIBS = arm_compute_env["LIBS"] + libs)
else:
- obj = build_env.SharedLibrary(name, source=sources, LIBS = arm_compute_env["LIBS"] + libs)
+ obj = cloned_build_env.SharedLibrary(name, source=sources, LIBS = arm_compute_env["LIBS"] + libs)
obj = install_lib(obj)
Default(obj)