diff options
Diffstat (limited to 'meta/packages/eglibc/eglibc-initial.inc')
-rw-r--r-- | meta/packages/eglibc/eglibc-initial.inc | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/meta/packages/eglibc/eglibc-initial.inc b/meta/packages/eglibc/eglibc-initial.inc new file mode 100644 index 0000000000..eb765df178 --- /dev/null +++ b/meta/packages/eglibc/eglibc-initial.inc | |||
@@ -0,0 +1,44 @@ | |||
1 | SECTION = "libs" | ||
2 | DEPENDS = "linux-libc-headers virtual/${TARGET_PREFIX}gcc-initial" | ||
3 | PROVIDES = "virtual/${TARGET_PREFIX}libc-initial" | ||
4 | |||
5 | PACKAGES = "" | ||
6 | PACKAGES_DYNAMIC = "" | ||
7 | |||
8 | do_configure () { | ||
9 | sed -ie 's,{ (exit 1); exit 1; }; },{ (exit 0); }; },g' ${S}/configure | ||
10 | chmod +x ${S}/configure | ||
11 | (cd ${S} && gnu-configize) || die "failure in running gnu-configize" | ||
12 | find ${S} -name "configure" | xargs touch | ||
13 | ${S}/configure --host=${TARGET_SYS} --build=${BUILD_SYS} \ | ||
14 | --prefix=/usr \ | ||
15 | --without-cvs --disable-sanity-checks \ | ||
16 | --with-headers=${STAGING_DIR_TARGET}${includedir} \ | ||
17 | --enable-hacker-mode --enable-addons | ||
18 | } | ||
19 | |||
20 | do_compile () { | ||
21 | : | ||
22 | } | ||
23 | |||
24 | do_install () { | ||
25 | oe_runmake cross-compiling=yes install_root=${D} \ | ||
26 | includedir='${includedir}' prefix='${prefix}' \ | ||
27 | install-bootstrap-headers=yes install-headers | ||
28 | |||
29 | oe_runmake csu/subdir_lib | ||
30 | # Two headers -- stubs.h and features.h -- aren't installed by install-headers, | ||
31 | # so do them by hand. We can tolerate an empty stubs.h for the moment. | ||
32 | # See e.g. http://gcc.gnu.org/ml/gcc/2002-01/msg00900.html | ||
33 | mkdir -p ${D}${includedir}/gnu/ | ||
34 | touch ${D}${includedir}/gnu/stubs.h | ||
35 | cp ${S}/include/features.h ${D}${includedir}/features.h | ||
36 | |||
37 | if [ -e ${B}/bits/stdio_lim.h ]; then | ||
38 | cp ${B}/bits/stdio_lim.h ${D}${includedir}/bits/ | ||
39 | fi | ||
40 | mkdir -p ${D}${libdir}/ | ||
41 | install -m 644 csu/crt[1in].o ${D}${libdir} | ||
42 | ${CC} -nostdlib -nostartfiles -shared -x c /dev/null \ | ||
43 | -o ${D}${libdir}/libc.so | ||
44 | } | ||