gtest: fix shared building
PATCH 1/1 gtest: fix shared building
When BR2_PREFER_STATIC_LIB is not selected there is no libgtest.a library.
fixes:
http://autobuild.buildroot.net/results/0d5/0d54439e7a722680f1988deb035a0236a18fb41c/build-end.log
Signed-off-by Marcelo Guti?rrez <[email protected]>
--- package/gtest/gtest.mk | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-)
package/gtest/gtest.mk +12 -1
@@ -16,8 +16,19 @@ define GTEST_EXTRACT_CMDS unzip $(DL_DIR)/$(GTEST_SOURCE) -d $(BUILD_DIR) endef -define GTEST_INSTALL_STAGING_CMDS +ifeq ($(BR2_PREFER_STATIC_LIB),y) +define GTEST_INSTALL_STAGING_STATIC_LIB $(INSTALL) -D -m 0755 $(@D)/libgtest.a $(STAGING_DIR)/usr/lib/libgtest.a +endef +else +define GTEST_INSTALL_STAGING_SHARED_LIB + $(INSTALL) -D -m 0755 $(@D)/libgtest.so $(STAGING_DIR)/usr/lib/libgtest.so +endef +endif + +define GTEST_INSTALL_STAGING_CMDS + $(GTEST_INSTALL_STAGING_SHARED_LIB) + $(GTEST_INSTALL_STAGING_STATIC_LIB) $(INSTALL) -d -m 0755 $(STAGING_DIR)/usr/include/gtest/ cp -rp $(@D)/include/gtest/* $(STAGING_DIR)/usr/include/gtest/ endef
Signature · 1 line
1.7.10.4
PATCH 1/1 gtest: fix shared building
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Marcelo" == Marcelo Guti?rrez <[email protected]> writes:
When
BR2_PREFER_STATIC_LIBis not selected there is no libgtest.a library. fixes:
http://autobuild.buildroot.net/results/0d5/0d54439e7a722680f1988deb035a0236a18fb41c/build-end.log
Thanks, but I've applied Samuel's patch to simply force static linking instead.
Signature · 1 line
Bye, Peter Korsgaard