numam-spdk/mk
Daniel Verkamp 0e0a489013 build: link mock lib with --whole-archive
The unit test mock library contains wrappers that aren't directly
referenced but still need to be kept to allow the final link to work
when they are used via --wrap.  Add the spdk_mock library to the
whole-archive list to prevent it from getting removed.

Fixes build with LTO enabled.

Change-Id: I2c70be7cb517a373178d34026f9980396727f8df
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/401074
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
2018-02-23 10:15:23 -05:00
..
nvme.libtest.mk build: add @: to remaining 'all' targets 2018-02-14 17:38:25 -05:00
spdk.app.mk build: link mock lib with --whole-archive 2018-02-23 10:15:23 -05:00
spdk.common.mk mk: remove -fno-omit-frame-pointer for release builds 2018-01-09 12:46:35 -05:00
spdk.deps.mk build: add copyright header where missing 2016-11-22 16:41:47 -07:00
spdk.lib.mk build: add dummy @: to some "all" targets 2018-02-14 10:40:40 -05:00
spdk.mock.unittest.mk test/mock: add pthread_self 2017-09-19 17:15:15 -04:00
spdk.modules.mk virtio: add new library virtio 2017-12-26 13:03:29 -05:00
spdk.subdirs.mk Make: remove -e from subdirectory command 2018-02-21 13:10:29 -05:00
spdk.unittest.mk build: add dummy @: to some "all" targets 2018-02-14 10:40:40 -05:00