diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2017-12-13 19:07:22 +0000 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:42:33 +0000 |
commit | a58b61e803adb90fc4c0459e431da03c690c69a7 (patch) | |
tree | b22dbdb108540de3019b2dcc9e23e3b6a34280bb /examples/SConscript | |
parent | cc9fed5c34e3ab128b2554ab7efaac329ffd49f8 (diff) | |
download | ComputeLibrary-a58b61e803adb90fc4c0459e431da03c690c69a7.tar.gz |
COMPMID-556: Force inclusion of all arm_compute_graph symbols
Symbols from translation units of arm_compute_graph were stripped during
static linkage.
Forces to include all symbols of arm_compute_graph.
Change-Id: Ib66f513792c8796fca10f8deaca887db474f2bed
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/113187
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Tested-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'examples/SConscript')
-rw-r--r-- | examples/SConscript | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/SConscript b/examples/SConscript index 3357ccaf33..2a037859ef 100644 --- a/examples/SConscript +++ b/examples/SConscript @@ -63,7 +63,7 @@ if env['opencl'] and env['neon']: Import('arm_compute_graph_a') Import('arm_compute_core_a') Import('arm_compute_a') - arm_compute_graph_libs = [ arm_compute_graph_a, arm_compute_a, arm_compute_core_a, "OpenCL"] + arm_compute_graph_libs = [ arm_compute_a, arm_compute_core_a, "OpenCL"] graph_dependency = arm_compute_graph_a else: Import('arm_compute_graph_so') @@ -75,7 +75,7 @@ if env['opencl'] and env['neon']: example = os.path.basename(os.path.splitext(str(file))[0]) prog = None if env['os'] == 'android': - prog = examples_env.Program(example, ["{}.cpp".format(example), utils, graph_utils], LIBS = arm_compute_graph_libs + ["OpenCL"]) + prog = examples_env.Program(example, ["{}.cpp".format(example), utils, graph_utils], LIBS = arm_compute_graph_libs + ["OpenCL"], LINKFLAGS=examples_env["LINKFLAGS"]+['-Wl,--whole-archive',graph_dependency,'-Wl,--no-whole-archive']) Depends(prog, [graph_dependency, opencl]) else: #-Wl,--allow-shlib-undefined: Ignore dependencies of dependencies |