summaryrefslogtreecommitdiffstats
path: root/package/gtest
diff options
context:
space:
mode:
Diffstat (limited to 'package/gtest')
-rw-r--r--package/gtest/gtest.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/package/gtest/gtest.mk b/package/gtest/gtest.mk
index e661d734c1..c7b2cf035b 100644
--- a/package/gtest/gtest.mk
+++ b/package/gtest/gtest.mk
@@ -12,6 +12,15 @@ GTEST_INSTALL_TARGET = NO
GTEST_LICENSE = BSD-3c
GTEST_LICENSE_FILES = LICENSE
+# While it is possible to build gtest as shared library, using this gtest shared
+# library requires to set some special configure option in the project using
+# gtest.
+# So, force to build gtest as a static library.
+#
+# For further details, refer to the explaination given in the README file from
+# the gtest sources.
+GTEST_CONF_OPT = -DBUILD_SHARED_LIBS=OFF
+
define GTEST_EXTRACT_CMDS
unzip $(DL_DIR)/$(GTEST_SOURCE) -d $(BUILD_DIR)
endef
OpenPOWER on IntegriCloud