aboutsummaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorPablo Tello <pablo.tello@arm.com>2017-06-21 15:39:47 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-09-17 14:14:20 +0100
commitc6cb35a1935cde168f4b72d8782c21a344e78623 (patch)
treebdd5ec8c02702868d6a0b63db49c9bb3e5a253e0 /SConstruct
parentee12254d4aae887ba654aa26bebc2e1330fc0a88 (diff)
downloadComputeLibrary-c6cb35a1935cde168f4b72d8782c21a344e78623.tar.gz
COMPMID-345: Updated scons scripts to link computer_vision statically against libgcc, libstdc++ and computer_vision.
This is needed to run 'computer_vision' on the ARM 8.2-a + FP16 Fast model. Change-Id: I66d6427e4d4117b7995c35ec9df1dea5b3f22205 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/78429 Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com> Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct5
1 files changed, 5 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 3927e3acc9..e23b2d239e 100644
--- a/SConstruct
+++ b/SConstruct
@@ -44,6 +44,7 @@ vars.AddVariables(
EnumVariable("build", "Build type", "cross_compile", allowed_values=("native", "cross_compile")),
BoolVariable("examples", "Build example programs", True),
BoolVariable("Werror", "Enable/disable the -Werror compilation flag", True),
+ BoolVariable("standalone", "Builds the tests as standalone executables, links statically with libgcc, libstdc++ and libarm_compute", False),
BoolVariable("opencl", "Enable OpenCL support", True),
BoolVariable("neon", "Enable Neon support", False),
BoolVariable("embed_kernels", "Embed OpenCL kernels in library binary", False),
@@ -161,6 +162,10 @@ if not GetOption("help"):
if compiler_ver == '4.8.3':
env.Append(CXXFLAGS = ['-Wno-array-bounds'])
+if env['standalone']:
+ env.Append(CXXFLAGS = ['-fPIC'])
+ env.Append(LINKFLAGS = ['-static-libgcc','-static-libstdc++'])
+
if env['Werror']:
env.Append(CXXFLAGS = ['-Werror'])