summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/eglibc/eglibc-initial.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/eglibc/eglibc-initial.inc')
-rw-r--r--meta/recipes-core/eglibc/eglibc-initial.inc44
1 files changed, 44 insertions, 0 deletions
diff --git a/meta/recipes-core/eglibc/eglibc-initial.inc b/meta/recipes-core/eglibc/eglibc-initial.inc
new file mode 100644
index 0000000000..eb765df178
--- /dev/null
+++ b/meta/recipes-core/eglibc/eglibc-initial.inc
@@ -0,0 +1,44 @@
1SECTION = "libs"
2DEPENDS = "linux-libc-headers virtual/${TARGET_PREFIX}gcc-initial"
3PROVIDES = "virtual/${TARGET_PREFIX}libc-initial"
4
5PACKAGES = ""
6PACKAGES_DYNAMIC = ""
7
8do_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
20do_compile () {
21 :
22}
23
24do_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}