diff options
Diffstat (limited to 'meta/packages/glibc/glibc-initial.inc')
-rw-r--r-- | meta/packages/glibc/glibc-initial.inc | 14 |
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 @@ | |||
1 | SECTION = "libs" | 1 | SECTION = "libs" |
2 | DEPENDS = "linux-libc-headers" | 2 | DEPENDS = "virtual/${TARGET_PREFIX}gcc-initial linux-libc-headers" |
3 | PROVIDES = "virtual/${TARGET_PREFIX}libc-initial" | 3 | PROVIDES = "virtual/${TARGET_PREFIX}libc-initial" |
4 | FILESPATH = "${@base_set_filespath([ '${FILE_DIRNAME}/glibc-2.4', '${FILE_DIRNAME}/glibc', '${FILE_DIRNAME}/files', '${FILE_DIRNAME}' ], d)}" | 4 | FILESPATH = "${@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 = "" | |||
9 | do_configure () { | 9 | do_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 | ||
32 | do_stage () { | 33 | do_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 | ||
47 | do_install () { | 55 | do_install () { |