summaryrefslogtreecommitdiff
path: root/package/pkgconf
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
parent8ea7db09073c2f7ba2ce4184eb70424c1ae24698 (diff)
fix some static build stuff, use a pkgconf wrapper, idea from buildroot
Diffstat (limited to 'package/pkgconf')
-rw-r--r--package/pkgconf/Makefile9
-rwxr-xr-xpackage/pkgconf/files/pkg-config2
2 files changed, 9 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
diff --git a/package/pkgconf/files/pkg-config b/package/pkgconf/files/pkg-config
new file mode 100755
index 000000000..8f64d083a
--- /dev/null
+++ b/package/pkgconf/files/pkg-config
@@ -0,0 +1,2 @@
+#!/usr/bin/env bash
+$(dirname $0)/pkgconf @@OPTS@@ $@