mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
gtest: fix usage on ARM platforms
Ensure that GTest is compiled with -fPIC to allow linking the static libraries with dynamically linked programs. This is not a requirement for most architectures but is mandatory for ARM. Signed-off-by: Carlos Santos <casantos@datacom.ind.br> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
7b394c4926
commit
2026621f3c
@ -37,6 +37,13 @@ HOST_GTEST_GMOCK_PYTHONPATH = \
|
|||||||
# the gtest sources.
|
# the gtest sources.
|
||||||
GTEST_CONF_OPTS = -DBUILD_SHARED_LIBS=OFF
|
GTEST_CONF_OPTS = -DBUILD_SHARED_LIBS=OFF
|
||||||
|
|
||||||
|
# Ensure that GTest is compiled with -fPIC to allow linking the static
|
||||||
|
# libraries with dynamically linked programs. This is not a requirement
|
||||||
|
# for most architectures but is mandatory for ARM.
|
||||||
|
ifeq ($(BR2_STATIC_LIBS),)
|
||||||
|
GTEST_CONF_OPTS += -DCMAKE_POSITION_INDEPENDENT_CODE=ON
|
||||||
|
endif
|
||||||
|
|
||||||
GTEST_CONF_OPTS += -DBUILD_GTEST=ON
|
GTEST_CONF_OPTS += -DBUILD_GTEST=ON
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_GTEST_GMOCK),y)
|
ifeq ($(BR2_PACKAGE_GTEST_GMOCK),y)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user