From: Yann E. MORIN Date: Fri, 5 Aug 2016 18:05:01 +0000 (+0200) Subject: package/kmsxx: fix static install X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ad105ae42cb63930885e04bb9b26e90f281cac51;p=buildroot.git package/kmsxx: fix static install Currently, we only try to install the shared libraries. However, when doing a static build, only the static libs are built, obviously. Fix this by only installing relevant libraries. Fixes: http://autobuild.buildroot.org/results/82c/82cfb7451f933b222abe30b5d35d23e409a4af79/ http://autobuild.buildroot.org/results/bb3/bb3840f14382b6ed77d5947eb3ac5c229286681e/ Signed-off-by: "Yann E. MORIN" Cc: Maxime Ripard Cc: Thomas Petazzoni Signed-off-by: Thomas Petazzoni --- diff --git a/package/kmsxx/kmsxx.mk b/package/kmsxx/kmsxx.mk index 84c860c4a1..df0ab234d7 100644 --- a/package/kmsxx/kmsxx.mk +++ b/package/kmsxx/kmsxx.mk @@ -29,17 +29,23 @@ endif KMSXX_LIBS = kms++ kms++util define KMSXX_INSTALL_TARGET_CMDS - $(foreach l,$(KMSXX_LIBS),\ - $(INSTALL) -D -m 0755 $(@D)/lib/lib$(l).so \ - $(TARGET_DIR)/usr/lib/lib$(l).so + $(if $(BR2_SHARED_LIBS)$(BR2_SHARED_STATIC_LIBS), + $(foreach l,$(KMSXX_LIBS),\ + $(INSTALL) -D -m 0755 $(@D)/lib/lib$(l).so \ + $(TARGET_DIR)/usr/lib/lib$(l).so + ) ) $(KMSXX_INSTALL_TARGET_TESTS) endef define KMSXX_INSTALL_STAGING_CMDS $(foreach l,$(KMSXX_LIBS),\ - $(INSTALL) -D -m 0755 $(@D)/lib/lib$(l).so \ - $(STAGING_DIR)/usr/lib/lib$(l).so + $(if $(BR2_SHARED_LIBS)$(BR2_SHARED_STATIC_LIBS), + $(INSTALL) -D -m 0755 $(@D)/lib/lib$(l).so \ + $(STAGING_DIR)/usr/lib/lib$(l).so) + $(if $(BR2_STATIC_LIBS)$(BR2_SHARED_STATIC_LIBS), + $(INSTALL) -D -m 0755 $(@D)/lib/lib$(l).a \ + $(STAGING_DIR)/usr/lib/lib$(l).a) mkdir -p $(STAGING_DIR)/usr/include/$(l) cp -dpfr $(@D)/$(l)/inc/$(l)/* $(STAGING_DIR)/usr/include/$(l)/ )