Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] gtest: install libgtest_main to staging
@ 2015-01-20 18:54 erico.nunes
  2015-01-25 17:46 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: erico.nunes @ 2015-01-20 18:54 UTC (permalink / raw)
  To: buildroot

gtest provides a separate libgtest_main library with a default main()
implementation for tests with basic needs.
This separate library isn't being installed by buildroot. This patch
adds the installation of this library to staging during the install of
gtest.

Signed-off-by: erico.nunes <erico.nunes@datacom.ind.br>
---
 package/gtest/gtest.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/gtest/gtest.mk b/package/gtest/gtest.mk
index 3f3e889..7129c93 100644
--- a/package/gtest/gtest.mk
+++ b/package/gtest/gtest.mk
@@ -27,6 +27,7 @@ endef
 
 define GTEST_INSTALL_STAGING_CMDS
 	$(INSTALL) -D -m 0755 $(@D)/libgtest.a $(STAGING_DIR)/usr/lib/libgtest.a
+	$(INSTALL) -D -m 0755 $(@D)/libgtest_main.a $(STAGING_DIR)/usr/lib/libgtest_main.a
 	$(INSTALL) -d -m 0755 $(STAGING_DIR)/usr/include/gtest/
 	cp -rp $(@D)/include/gtest/* $(STAGING_DIR)/usr/include/gtest/
 endef
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-25 17:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-20 18:54 [Buildroot] [PATCH 1/1] gtest: install libgtest_main to staging erico.nunes
2015-01-25 17:46 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox