diff options
Diffstat (limited to 'package/glibc')
| -rw-r--r-- | package/glibc/Config.in.manual | 10 | ||||
| -rw-r--r-- | package/glibc/Makefile | 33 | ||||
| -rw-r--r-- | package/glibc/files/libc.so.i586 | 5 | ||||
| -rw-r--r-- | package/glibc/files/libc.so.i686 | 5 | ||||
| -rw-r--r-- | package/glibc/files/libc.so.mips | 5 | ||||
| -rw-r--r-- | package/glibc/files/libc.so.mips64 | 5 | ||||
| -rw-r--r-- | package/glibc/files/libc.so.mips64el | 5 | ||||
| -rw-r--r-- | package/glibc/files/libc.so.mipsel | 5 |
8 files changed, 46 insertions, 27 deletions
diff --git a/package/glibc/Config.in.manual b/package/glibc/Config.in.manual index dd5ab418a..5e5bd1dcc 100644 --- a/package/glibc/Config.in.manual +++ b/package/glibc/Config.in.manual @@ -7,13 +7,3 @@ config ADK_PACKAGE_GLIBC select ADK_PACKAGE_TZDATA help GNU C library. - -config ADK_PACKAGE_GLIBC_DEV - prompt "glibc-dev................ development files" - tristate - default n - depends on ADK_TARGET_LIB_GLIBC - help - GNU C library header files. - - diff --git a/package/glibc/Makefile b/package/glibc/Makefile index a03a5c8bd..850280ab5 100644 --- a/package/glibc/Makefile +++ b/package/glibc/Makefile @@ -8,6 +8,7 @@ TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS)) include $(TOPDIR)/toolchain/glibc/Makefile.inc +PKG_NAME:= glibc PKG_DESCR:= GNU C library PKG_SECTION:= base PKG_OPTS:= noremove @@ -29,16 +30,6 @@ INSTALL_STYLE:= manual # compile nothing, glibc is already build in toolchain directory do-install: -ifeq ($(ADK_TARGET_WITH_MULTILIB),y) - for abi in $(TABI); do \ - ${INSTALL_DIR} $(IDIR_GLIBC)/lib$${abi/*:/} $(IDIR_GLIBC)/usr/lib$${abi/*:/} ; \ - $(CP) $(STAGING_TARGET_DIR)/lib/ld* $(IDIR_GLIBC)/lib$${abi/*:/} ; \ - -for file in libc libcrypt libdl libm libresolv libutil libnsl libnss_dns libnss_files; do \ - $(CP) $(STAGING_TARGET_DIR)-$${abi/*:/}/lib/$$file.so* $(IDIR_GLIBC)/lib$${abi/*:/}; \ - $(CP) $(STAGING_TARGET_DIR)-$${abi/*:/}/lib/$$file-$(PKG_VERSION).so $(IDIR_GLIBC)/lib$${abi/*:/}; \ - done ; \ - done -else ${INSTALL_DIR} ${IDIR_GLIBC}/$(ADK_TARGET_LIBC_PATH) $(CP) $(STAGING_TARGET_DIR)/lib/ld*.so* $(IDIR_GLIBC)/$(ADK_TARGET_LIBC_PATH) for file in libc libcrypt libdl libm libnsl libresolv libutil libnss_compat libnss_dns libnss_files; do \ @@ -47,10 +38,6 @@ else done ${INSTALL_DIR} $(IDIR_GLIBC)/usr/bin $(CP) $(STAGING_TARGET_DIR)/usr/bin/getconf $(IDIR_GLIBC)/usr/bin -ifeq ($(ADK_LOCALES),y) - $(CP) $(STAGING_TARGET_DIR)/usr/bin/locale $(IDIR_GLIBC)/usr/bin -endif -endif ${INSTALL_DIR} ${IDIR_GLIBC}/etc ${INSTALL_DATA} ${STAGING_TARGET_DIR}/etc/gai.conf ${IDIR_GLIBC}/etc ${INSTALL_DATA} ./files/nsswitch.conf ${IDIR_GLIBC}/etc @@ -65,13 +52,25 @@ glibc-dev-install: # install linker script -cp ./files/libc.so.$(CPU_ARCH) $(IDIR_GLIBC_DEV)/usr/lib/libc.so ifeq ($(ADK_TARGET_ABI_O32),y) - $(SED) "s#@@ELFFORMAT@@#elf32-tradlittlemips#" $(IDIR_GLIBC_DEV)/usr/lib/libc.so +ifeq ($(ADK_big),y) + $(SED) "s#@@ELFTARGET@@#elf32-tradbigmips#" $(IDIR_GLIBC_DEV)/usr/lib/libc.so +else + $(SED) "s#@@ELFTARGET@@#elf32-tradlittlemips#" $(IDIR_GLIBC_DEV)/usr/lib/libc.so +endif endif ifeq ($(ADK_TARGET_ABI_N32),y) - $(SED) "s#@@ELFFORMAT@@#elf32-ntradlittlemips#" $(IDIR_GLIBC_DEV)/usr/lib/libc.so +ifeq ($(ADK_big),y) + $(SED) "s#@@ELFTARGET@@#elf32-ntradbigmips#" $(IDIR_GLIBC_DEV)/usr/lib/libc.so +else + $(SED) "s#@@ELFTARGET@@#elf32-ntradlittlemips#" $(IDIR_GLIBC_DEV)/usr/lib/libc.so +endif endif ifeq ($(ADK_TARGET_ABI_N64),y) - $(SED) "s#@@ELFFORMAT@@#elf64-tradlittlemips#" $(IDIR_GLIBC_DEV)/usr/lib/libc.so +ifeq ($(ADK_big),y) + $(SED) "s#@@ELFTARGET@@#elf64-tradbigmips#" $(IDIR_GLIBC_DEV)/usr/lib/libc.so +else + $(SED) "s#@@ELFTARGET@@#elf64-tradlittlemips#" $(IDIR_GLIBC_DEV)/usr/lib/libc.so +endif endif ${CP} ${STAGING_TARGET_DIR}/usr/lib/crt* ${IDIR_GLIBC_DEV}/usr/lib ${CP} ${STAGING_TARGET_DIR}/usr/lib/libc_nonshared.a ${IDIR_GLIBC_DEV}/usr/lib diff --git a/package/glibc/files/libc.so.i586 b/package/glibc/files/libc.so.i586 new file mode 100644 index 000000000..cd8724cc5 --- /dev/null +++ b/package/glibc/files/libc.so.i586 @@ -0,0 +1,5 @@ +/* GNU ld script + Use the shared library, but some functions are only in + the static library, so try that secondarily. */ +OUTPUT_FORMAT(elf32-i386) +GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a AS_NEEDED ( /lib/ld-linux.so.2 ) ) diff --git a/package/glibc/files/libc.so.i686 b/package/glibc/files/libc.so.i686 new file mode 100644 index 000000000..cd8724cc5 --- /dev/null +++ b/package/glibc/files/libc.so.i686 @@ -0,0 +1,5 @@ +/* GNU ld script + Use the shared library, but some functions are only in + the static library, so try that secondarily. */ +OUTPUT_FORMAT(elf32-i386) +GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a AS_NEEDED ( /lib/ld-linux.so.2 ) ) diff --git a/package/glibc/files/libc.so.mips b/package/glibc/files/libc.so.mips new file mode 100644 index 000000000..9e73ea39c --- /dev/null +++ b/package/glibc/files/libc.so.mips @@ -0,0 +1,5 @@ +/* GNU ld script + Use the shared library, but some functions are only in + the static library, so try that secondarily. */ + OUTPUT_FORMAT(@@ELFTARGET@@) + GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a AS_NEEDED ( /lib/ld.so.1 ) ) diff --git a/package/glibc/files/libc.so.mips64 b/package/glibc/files/libc.so.mips64 new file mode 100644 index 000000000..9e73ea39c --- /dev/null +++ b/package/glibc/files/libc.so.mips64 @@ -0,0 +1,5 @@ +/* GNU ld script + Use the shared library, but some functions are only in + the static library, so try that secondarily. */ + OUTPUT_FORMAT(@@ELFTARGET@@) + GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a AS_NEEDED ( /lib/ld.so.1 ) ) diff --git a/package/glibc/files/libc.so.mips64el b/package/glibc/files/libc.so.mips64el new file mode 100644 index 000000000..9e73ea39c --- /dev/null +++ b/package/glibc/files/libc.so.mips64el @@ -0,0 +1,5 @@ +/* GNU ld script + Use the shared library, but some functions are only in + the static library, so try that secondarily. */ + OUTPUT_FORMAT(@@ELFTARGET@@) + GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a AS_NEEDED ( /lib/ld.so.1 ) ) diff --git a/package/glibc/files/libc.so.mipsel b/package/glibc/files/libc.so.mipsel new file mode 100644 index 000000000..9e73ea39c --- /dev/null +++ b/package/glibc/files/libc.so.mipsel @@ -0,0 +1,5 @@ +/* GNU ld script + Use the shared library, but some functions are only in + the static library, so try that secondarily. */ + OUTPUT_FORMAT(@@ELFTARGET@@) + GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a AS_NEEDED ( /lib/ld.so.1 ) ) |
