summaryrefslogtreecommitdiff
path: root/package/glibc/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-11-23 21:24:28 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-11-23 21:24:28 +0100
commit29ff12f95706e0abeab5c054c66b3c6687e6515b (patch)
tree518a48e9525699c7982d6a91b516e5faa4ad45f3 /package/glibc/Makefile
parent8eb8b85f894eae8a7dcd85a1d821e875b8875ce5 (diff)
install symlinks for glibc-dev package, do not install libnsl for now
Diffstat (limited to 'package/glibc/Makefile')
-rw-r--r--package/glibc/Makefile32
1 files changed, 4 insertions, 28 deletions
diff --git a/package/glibc/Makefile b/package/glibc/Makefile
index 6d9be792c..e995cb957 100644
--- a/package/glibc/Makefile
+++ b/package/glibc/Makefile
@@ -13,33 +13,6 @@ NO_DISTFILES:= 1
include $(TOPDIR)/mk/package.mk
-GLIBC_CONFOPTS:= --build=$(GNU_HOST_NAME) \
- --host=$(REAL_GNU_TARGET_NAME) \
- --with-headers=$(TOOLCHAIN_SYSROOT)/usr/include \
- --disable-nls \
- --disable-sanity-checks \
- --disable-nls \
- --without-cvs \
- --disable-profile \
- --disable-debug \
- --without-gd \
- --with-__thread \
- --with-tls \
- --enable-kernel="2.6.0" \
- --enable-add-ons
-
-GLIBC_ENV:= PATH='${TARGET_PATH}' \
- BUILD_CC=${HOSTCC} \
- CFLAGS="$(TARGET_CFLAGS)" \
- CC=${REAL_GNU_TARGET_NAME}-gcc \
- CXX=${REAL_GNU_TARGET_NAME}-g++ \
- AR=${REAL_GNU_TARGET_NAME}-ar \
- RANLIB=${REAL_GNU_TARGET_NAME}-ranlib \
- libc_cv_forced_unwind=yes \
- libc_cv_c_cleanup=yes \
- libc_cv_gnu99_inline=yes \
- libc_cv_slibdir="/lib"
-
$(eval $(call PKG_template,GLIBC,glibc,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
$(eval $(call PKG_template,GLIBC_DEV,glibc-dev,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
@@ -59,7 +32,7 @@ do-install: ${SUB_INSTALLS-m} ${SUB_INSTALLS-y}
$(IDIR_GLIBC)/etc/localtime
$(CP) $(STAGING_DIR)/lib/libgcc_s.so* $(IDIR_GLIBC)/lib/
$(CP) $(STAGING_DIR)/lib/ld*.so* $(IDIR_GLIBC)/lib/
- -for file in libc libcrypt libdl libm libnsl libresolv librt libutil libnss_compat libnss_dns libnss_files; do \
+ -for file in libc libcrypt libdl libm libresolv librt libutil libnss_compat libnss_dns libnss_files; do \
$(CP) $(STAGING_DIR)/lib/$$file.so* $(IDIR_GLIBC)/lib/; \
$(CP) $(STAGING_DIR)/lib/$$file-$(PKG_VERSION).so $(IDIR_GLIBC)/lib/; \
done
@@ -70,6 +43,9 @@ glibc-dev-install:
-cp ./files/libc.so.$(ARCH) $(IDIR_GLIBC_DEV)/usr/lib/libc.so
${CP} ${STAGING_DIR}/usr/lib/crt* ${IDIR_GLIBC_DEV}/usr/lib
${CP} ${STAGING_DIR}/usr/lib/libc_nonshared.a ${IDIR_GLIBC_DEV}/usr/lib
+ -for file in libc libcrypt libdl libm libresolv librt libutil; do \
+ cd $(IDIR_GLIBC_DEV)/lib/; ln -sf $$file-$(PKG_VERSION).so $$file.so; \
+ done
# header package
$(MAKE) -C $(TOOLCHAIN_BUILD_DIR)/w-linux-$(KERNEL_VERSION)-$(KERNEL_RELEASE)/linux-$(KERNEL_VERSION) \
HOSTCC=$(HOSTCC) ARCH=$(ARCH) V=1 \