From a58b61e803adb90fc4c0459e431da03c690c69a7 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Wed, 13 Dec 2017 19:07:22 +0000 Subject: 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 Tested-by: Anthony Barbier --- examples/SConscript | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/SConscript') 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 -- cgit v1.2.1