mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-15 00:04:29 +08:00
unit: Fixed Mesh Crypto unit test build for LTO
Was erroneously compiling and linking explicit unit test versions of the ELL source dependancies while also linking with the library made from same sources. This created Link Time Optimization (LTO) problems when calling exit(), as there were two copies of the constructors and destructors from ell/log.c.
This commit is contained in:
parent
29c1ed83bc
commit
4f4ac13ef6
@ -524,10 +524,8 @@ if MESH
|
||||
unit_tests += unit/test-mesh-crypto
|
||||
unit_test_mesh_crypto_CPPFLAGS = $(ell_cflags)
|
||||
unit_test_mesh_crypto_SOURCES = unit/test-mesh-crypto.c \
|
||||
mesh/crypto.h ell/internal ell/ell.h \
|
||||
$(ell_sources)
|
||||
unit_test_mesh_crypto_LDADD = src/libshared-ell.la \
|
||||
$(ell_ldadd)
|
||||
mesh/crypto.h ell/internal ell/ell.h
|
||||
unit_test_mesh_crypto_LDADD = $(ell_ldadd)
|
||||
endif
|
||||
|
||||
if MAINTAINER_MODE
|
||||
|
Loading…
Reference in New Issue
Block a user