diff mbox

[1/1] gtest: install libgtest_main to staging

Message ID 1421780073-16345-1-git-send-email-erico.nunes@datacom.ind.br
State Accepted
Headers show

Commit Message

Erico Nunes Jan. 20, 2015, 6:54 p.m. UTC
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(+)

Comments

Thomas Petazzoni Jan. 25, 2015, 5:46 p.m. UTC | #1
Dear erico.nunes,

On Tue, 20 Jan 2015 16:54:33 -0200, erico.nunes wrote:
> 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>

Thanks, applied. I only adjusted the Signed-off-by line and Author
information to be a little bit nicer than "erico.nunes".

Can you fixup your Git configuration to have your name as "FirstName
LastName" instead of "firstname.lastname".

I.e, your ~/.gitconfig should look like:

[user]
	name = Erico Nunes
	email = erico.nunes@datacom.ind.br

Thanks!

Thomas
diff mbox

Patch

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