summaryrefslogtreecommitdiffstats
path: root/meta/packages/glibc/glibc-initial.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/glibc/glibc-initial.inc')
-rw-r--r--meta/packages/glibc/glibc-initial.inc14
1 files changed, 11 insertions, 3 deletions
diff --git a/meta/packages/glibc/glibc-initial.inc b/meta/packages/glibc/glibc-initial.inc
index 0e5db2e729..143a662d52 100644
--- a/meta/packages/glibc/glibc-initial.inc
+++ b/meta/packages/glibc/glibc-initial.inc
@@ -1,5 +1,5 @@
1SECTION = "libs" 1SECTION = "libs"
2DEPENDS = "linux-libc-headers" 2DEPENDS = "virtual/${TARGET_PREFIX}gcc-initial linux-libc-headers"
3PROVIDES = "virtual/${TARGET_PREFIX}libc-initial" 3PROVIDES = "virtual/${TARGET_PREFIX}libc-initial"
4FILESPATH = "${@base_set_filespath([ '${FILE_DIRNAME}/glibc-2.4', '${FILE_DIRNAME}/glibc', '${FILE_DIRNAME}/files', '${FILE_DIRNAME}' ], d)}" 4FILESPATH = "${@base_set_filespath([ '${FILE_DIRNAME}/glibc-2.4', '${FILE_DIRNAME}/glibc', '${FILE_DIRNAME}/files', '${FILE_DIRNAME}' ], d)}"
5 5
@@ -9,7 +9,8 @@ PACKAGES_DYNAMIC = ""
9do_configure () { 9do_configure () {
10 sed -ie 's,{ (exit 1); exit 1; }; },{ (exit 0); }; },g' ${S}/configure 10 sed -ie 's,{ (exit 1); exit 1; }; },{ (exit 0); }; },g' ${S}/configure
11 chmod +x ${S}/configure 11 chmod +x ${S}/configure
12 CC="${BUILD_CC}" CPP="${BUILD_CPP}" LD="${BUILD_LD}" ${S}/configure --host=${TARGET_SYS} --build=${BUILD_SYS} \ 12 find ${S} -name "configure" | xargs touch
13 ${S}/configure --host=${TARGET_SYS} --build=${BUILD_SYS} \
13 --without-cvs --disable-sanity-checks \ 14 --without-cvs --disable-sanity-checks \
14 --with-headers=${STAGING_DIR_TARGET}${layout_includedir} \ 15 --with-headers=${STAGING_DIR_TARGET}${layout_includedir} \
15 --enable-hacker-mode 16 --enable-hacker-mode
@@ -30,8 +31,11 @@ do_compile () {
30} 31}
31 32
32do_stage () { 33do_stage () {
33 oe_runmake cross-compiling=yes install_root=${STAGING_DIR_HOST} includedir='${layout_includedir}' prefix='${layout_prefix}' install-headers 34 oe_runmake cross-compiling=yes install_root=${STAGING_DIR_HOST} \
35 includedir='${layout_includedir}' prefix='${layout_prefix}' \
36 install-bootstrap-headers=yes install-headers
34 37
38 oe_runmake csu/subdir_lib
35 # Two headers -- stubs.h and features.h -- aren't installed by install-headers, 39 # Two headers -- stubs.h and features.h -- aren't installed by install-headers,
36 # so do them by hand. We can tolerate an empty stubs.h for the moment. 40 # so do them by hand. We can tolerate an empty stubs.h for the moment.
37 # See e.g. http://gcc.gnu.org/ml/gcc/2002-01/msg00900.html 41 # See e.g. http://gcc.gnu.org/ml/gcc/2002-01/msg00900.html
@@ -42,6 +46,10 @@ do_stage () {
42 if [ -e ${B}/bits/stdio_lim.h ]; then 46 if [ -e ${B}/bits/stdio_lim.h ]; then
43 cp ${B}/bits/stdio_lim.h ${STAGING_INCDIR}/bits/ 47 cp ${B}/bits/stdio_lim.h ${STAGING_INCDIR}/bits/
44 fi 48 fi
49 mkdir -p ${STAGING_DIR_TARGET}${layout_libdir}
50 install -m 644 csu/crt[1in].o ${STAGING_DIR_TARGET}${layout_libdir}
51 ${CC} -nostdlib -nostartfiles -shared -x c /dev/null \
52 -o ${STAGING_DIR_TARGET}${layout_libdir}/libc.so
45} 53}
46 54
47do_install () { 55do_install () {