summaryrefslogtreecommitdiff
path: root/package/pkgconf/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-06-25 21:00:53 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-06-25 21:01:02 +0200
commit932b2872fae5464154b10a939173ea4676d7ee3d (patch)
treea81be8d28309db61d4579011993260df45b5388a /package/pkgconf/Makefile
parent8ea7db09073c2f7ba2ce4184eb70424c1ae24698 (diff)
fix some static build stuff, use a pkgconf wrapper, idea from buildroot
Diffstat (limited to 'package/pkgconf/Makefile')
-rw-r--r--package/pkgconf/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/package/pkgconf/Makefile b/package/pkgconf/Makefile
index 04b7c1b7a..26f33a7f6 100644
--- a/package/pkgconf/Makefile
+++ b/package/pkgconf/Makefile
@@ -21,8 +21,13 @@ $(eval $(call HOST_template,PKGCONF,pkgconf,$(PKG_VERSION)-${PKG_RELEASE}))
$(eval $(call PKG_template,PKGCONF,pkgconf,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
hostpost-install:
- (cd $(STAGING_HOST_DIR)/usr/bin && ln -sf pkgconf pkg-config)
- (cd $(STAGING_HOST_DIR)/usr/bin && ln -sf pkgconf $(GNU_TARGET_NAME)-pkg-config)
+ $(CP) ./files/pkg-config $(STAGING_HOST_DIR)/usr/bin
+ifeq ($(ADK_TARGET_USE_STATIC_LIBS),y)
+ $(SED) "s#@@OPTS@@#-static#" $(STAGING_HOST_DIR)/usr/bin/pkg-config
+else
+ $(SED) "s#@@OPTS@@##" $(STAGING_HOST_DIR)/usr/bin/pkg-config
+endif
+ (cd $(STAGING_HOST_DIR)/usr/bin && ln -sf pkg-config $(GNU_TARGET_NAME)-pkg-config)
pkgconf-install:
$(INSTALL_DIR) $(IDIR_PKGCONF)/usr/bin