tinyxml2: fix build in static libs configuration
authorRahul Bedarkar <rahulbedarkar89@gmail.com>
Wed, 3 May 2017 19:04:14 +0000 (00:34 +0530)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 4 May 2017 15:08:41 +0000 (17:08 +0200)
commita598a7109c3b518898f38b433f865801d1c1163f
tree091af0b62f6fb026c18a8e007cc945eedb0870a2
parent15a31470b0381fc0a77cafbc5ed63c8578a163ff
tinyxml2: fix build in static libs configuration

tinyxml2 can build both static and shared libraries. By default, only
shared library is built. Shared/static builds are controlled using
separate cmake flags BUILD_SHARED_LIBS and BUILD_STATIC_LIBS.

In static libs configuration, we internally pass -DBUILD_SHARED_LIBS=OFF
cmake flag to build system which disables both shared and static builds
of library, resulting in failures while linking executable with library.

So pass -DBUILD_STATIC_LIBS=ON cmake flag in case of static libs
configuration.

fixes:
  http://autobuild.buildroot.net/results/d30/d301bcbe5db26068b35eaa94bd816ae8cf8ef2e1

Signed-off-by: Rahul Bedarkar <rahulbedarkar89@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/tinyxml2/tinyxml2.mk