summaryrefslogtreecommitdiff
path: root/package/glibc
diff options
context:
space:
mode:
Diffstat (limited to 'package/glibc')
-rw-r--r--package/glibc/Config.in9
-rw-r--r--package/glibc/Makefile17
2 files changed, 26 insertions, 0 deletions
diff --git a/package/glibc/Config.in b/package/glibc/Config.in
index 702870201..35e630dc7 100644
--- a/package/glibc/Config.in
+++ b/package/glibc/Config.in
@@ -7,3 +7,12 @@ config ADK_PACKAGE_GLIBC
help
GNU C library.
+config ADK_PACKAGE_GLIBC_DEV
+ prompt "glibc-dev........................... development files"
+ bool
+ 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 e8ba0cd91..479c8aab9 100644
--- a/package/glibc/Makefile
+++ b/package/glibc/Makefile
@@ -31,5 +31,22 @@ endif
done
# create ld.so link for mips gcc linker option
cd $(IDIR_GLIBC)/lib && ln -sf ld-linux.so.2 ld.so.1
+ cd $(IDIR_GLIBC)/lib && ln -sf libgcc_s.so.1 libgcc_s.so
+ # header package
+ ${INSTALL_DIR} $(IDIR_GLIBC_DEV)/usr/include/{sys,bits,linux,asm,asm-generic}
+ for file in \
+ regex errno limits alloca stdint locale ctype \
+ stdlib string sgidefs fcntl \
+ libintl sched pthread wchar _G_config getopt endian \
+ features libio stdio error signal time unistd \
+ ;do \
+ ${CP} $(STAGING_DIR)/usr/include/$$file.h \
+ $(IDIR_GLIBC_DEV)/usr/include; \
+ done
+ ${CP} $(STAGING_DIR)/usr/include/asm/*.h $(IDIR_GLIBC_DEV)/usr/include/asm
+ ${CP} $(STAGING_DIR)/usr/include/asm-generic/*.h $(IDIR_GLIBC_DEV)/usr/include/asm-generic
+ ${CP} $(STAGING_DIR)/usr/include/sys/*.h $(IDIR_GLIBC_DEV)/usr/include/sys
+ ${CP} $(STAGING_DIR)/usr/include/bits/*.h $(IDIR_GLIBC_DEV)/usr/include/bits
+ ${CP} $(STAGING_DIR)/usr/include/linux/*.h $(IDIR_GLIBC_DEV)/usr/include/linux
include ${TOPDIR}/mk/pkg-bottom.mk