summaryrefslogtreecommitdiff
path: root/package/eglibc/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-07-19 13:02:38 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2011-07-19 13:02:38 +0200
commit0009804c2b9d37028d05f8a2b188d313f850e523 (patch)
treef936df4564bd568a84e9e7aed53eaa7413366c62 /package/eglibc/Makefile
parentf279355ddb39c40e869cb3d72b50c9da2581782b (diff)
add subpackage with static library
Diffstat (limited to 'package/eglibc/Makefile')
-rw-r--r--package/eglibc/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/package/eglibc/Makefile b/package/eglibc/Makefile
index 0b5956431..5bf290fe9 100644
--- a/package/eglibc/Makefile
+++ b/package/eglibc/Makefile
@@ -7,7 +7,7 @@ include $(TOPDIR)/toolchain/eglibc/Makefile.inc
PKG_DESCR:= embedded GNU C library
PKG_SECTION:= base
PKG_OPTS:= noremove
-PKG_SUBPKGS:= EGLIBC EGLIBC_DEV
+PKG_SUBPKGS:= EGLIBC EGLIBC_DEV EGLIBC_STATIC
NO_DISTFILES:= 1
@@ -15,6 +15,7 @@ include $(TOPDIR)/mk/package.mk
$(eval $(call PKG_template,EGLIBC,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
$(eval $(call PKG_template,EGLIBC_DEV,$(PKG_NAME)-dev,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
+$(eval $(call PKG_template,EGLIBC_STATIC,$(PKG_NAME)-static,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
CONFIG_STYLE:= manual
BUILD_STYLE:= manual
@@ -82,6 +83,10 @@ endif
${INSTALL_DATA} ${STAGING_TARGET_DIR}/etc/nscd.conf ${IDIR_EGLIBC}/etc
${INSTALL_DATA} ${STAGING_TARGET_DIR}/etc/nsswitch.conf ${IDIR_EGLIBC}/etc
+eglibc-static-install:
+ ${INSTALL_DIR} $(IDIR_EGLIBC_STATIC)/usr/lib
+ $(CP) $(STAGING_TARGET_DIR)/usr/lib/libc.a $(IDIR_EGLIBC_STATIC)/usr/lib
+
eglibc-dev-install:
${INSTALL_DIR} $(IDIR_EGLIBC_DEV)/lib $(IDIR_EGLIBC_DEV)/usr/lib
# install linker script