support/misc/toolchainfile.cmake.in: use TARGET_LDFLAGS for shared and module libraries
authorDamien Thébault <damien.thebault@vitec.com>
Thu, 12 Jul 2018 06:52:13 +0000 (06:52 +0000)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 19 Jul 2018 07:33:37 +0000 (09:33 +0200)
commitd8c0faa980df32622d5f1964892ba84fa4f17a9e
tree3a981c7b3e72480b77377b61735362541ca41e8c
parentba3c7e806d3ebeb1fa66fe7ba0ee9a70447b49b0
support/misc/toolchainfile.cmake.in: use TARGET_LDFLAGS for shared and module libraries

With cmake packages, we are only using TARGET_LDFLAGS for executables
and not for shared libraries.

This patch adds CMAKE_SHARED_LINKER_FLAGS and
CMAKE_MODULE_LINKER_FLAGS to the cmake toolchain file so that
buildroot TARGET_LDFLAGS are used for shared and module libraries.

Signed-off-by: Damien Thébault <damien.thebault@vitec.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
support/misc/toolchainfile.cmake.in