summaryrefslogtreecommitdiff
path: root/package/eglibc/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-10-12 07:52:09 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2011-10-12 07:52:09 +0200
commit0977a464d36dd506f2cda65b977eca698058d579 (patch)
tree29a004f51198a00f07dc5ed5dc25f13fdf6d1f49 /package/eglibc/Makefile
parent722eee7d945f1299eb6bdc3139938b3df55a1bf5 (diff)
parent2ffc78538276d5eabf60c07bd84d8fb8021fd6fa (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/eglibc/Makefile')
-rw-r--r--package/eglibc/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/package/eglibc/Makefile b/package/eglibc/Makefile
index 5bf290fe9..5466ddb85 100644
--- a/package/eglibc/Makefile
+++ b/package/eglibc/Makefile
@@ -91,6 +91,15 @@ eglibc-dev-install:
${INSTALL_DIR} $(IDIR_EGLIBC_DEV)/lib $(IDIR_EGLIBC_DEV)/usr/lib
# install linker script
-cp ./files/libc.so.$(ARCH) $(IDIR_EGLIBC_DEV)/usr/lib/libc.so
+ifeq ($(ADK_TARGET_ABI_O32),y)
+ $(SED) "s#@@ELFFORMAT@@#elf32-tradlittlemips#" $(IDIR_EGLIBC_DEV)/usr/lib/libc.so
+endif
+ifeq ($(ADK_TARGET_ABI_N32),y)
+ $(SED) "s#@@ELFFORMAT@@#elf32-ntradlittlemips#" $(IDIR_EGLIBC_DEV)/usr/lib/libc.so
+endif
+ifeq ($(ADK_TARGET_ABI_N64),y)
+ $(SED) "s#@@ELFFORMAT@@#elf64-tradlittlemips#" $(IDIR_EGLIBC_DEV)/usr/lib/libc.so
+endif
${CP} ${STAGING_TARGET_DIR}/usr/lib/crt* ${IDIR_EGLIBC_DEV}/usr/lib
${CP} ${STAGING_TARGET_DIR}/usr/lib/libc_nonshared.a ${IDIR_EGLIBC_DEV}/usr/lib
-for file in libc libcrypt libdl libm libresolv librt libutil; do \