build: make linux shared libs with as-needed flag 13/22613/6
authorMats Wichmann <mats@linux.com>
Tue, 26 Sep 2017 16:31:19 +0000 (10:31 -0600)
committerPhil Coval <philippe.coval@osg.samsung.com>
Tue, 21 Nov 2017 10:08:01 +0000 (10:08 +0000)
commitc2fd6061fa443d10929a007ff3b79c3de07ec187
tree6bf59bd74f3f545597ecd5108687ad481efe99cb
parent3b21b046acde14143db2b08dcefbcad1c43fe135
build: make linux shared libs with as-needed flag

The shared libraries in the Linux build sometimes link with other shared
libraries they don't actually use.  It's "cleaner" if the dependencies
are only real ones.  Adding the linker flag only for shared library builds
(SHLINKFLAGS) improves this situation, and leads to the changes documented
in the referenced bug (IOT-2354).

The scons scripts which build these libraries should presumably
be examined, to stop them listing dependencies they don't use,
but that is currently a separate topic.

Change-Id: I0b55c2048af36a28ae26829aa934cfadc4665651
Bug: IOT-2354
Signed-off-by: Mats Wichmann <mats@linux.com>
build_common/linux/SConscript