summaryrefslogtreecommitdiff
path: root/strata/build-essential/stage2-eglibc.morph
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2014-10-31 00:46:21 +0000
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2014-11-11 18:36:22 +0000
commit0cbbccbc9df630f9694c464f640ed0b29e62e6ed (patch)
tree83358fac775d533894edfc1417bf6d6b5e4eb189 /strata/build-essential/stage2-eglibc.morph
parent3d4ee90374202dcd02cdd2770831ecfff77091b7 (diff)
downloaddefinitions-0cbbccbc9df630f9694c464f640ed0b29e62e6ed.tar.gz
Use glibc instead of eglibc
Diffstat (limited to 'strata/build-essential/stage2-eglibc.morph')
-rw-r--r--strata/build-essential/stage2-eglibc.morph56
1 files changed, 0 insertions, 56 deletions
diff --git a/strata/build-essential/stage2-eglibc.morph b/strata/build-essential/stage2-eglibc.morph
deleted file mode 100644
index 3a7277ac..00000000
--- a/strata/build-essential/stage2-eglibc.morph
+++ /dev/null
@@ -1,56 +0,0 @@
-name: stage2-eglibc
-kind: chunk
-
-configure-commands:
-- mkdir o
-
-# Necessary for ARM port
-- cd libc && ln -s ../ports ports
-
-# Configure flag notes:
-# 1. Avoid installing to PREFIX/lib64 on x86_64.
-# 2. Location of linux-api-headers.
-# 3. Normal flags. See eglibc.morph.
-# 4. Force configuration values of certain things that can't be detected
-# in a cross-compile.
-- |
- export CFLAGS="-O2 $CFLAGS"; export CXX=false; \
- cd o && ../libc/configure \
- $(../morph-arch-config) \
- --build=$(../libc/scripts/config.guess) --host=$TARGET_STAGE1 \
- --prefix="$PREFIX" \
- `# [1]` --libdir="$PREFIX/lib" \
- `# [2]` --with-headers="$(pwd)/../../$PREFIX/include" \
- `# [3]` --disable-profile --enable-kernel=2.6.25 \
- --enable-add-ons=nptl,ports --without-cvs --without-selinux \
- `# [4]` libc_cv_c_cleanup=yes libc_cv_ctors_header=yes \
- libc_cv_forced_unwind=yes libc_cv_ssp=no
-
-build-commands:
-- cd o && make localtime=UTC
-
-install-commands:
-- cd o && make install_root="$DESTDIR" localtime=UTC install
-- sh stage2-eglibc-fix-specs
-
-# Install a symlink for the program interpreter (ld.so) so that binaries
-# built in stage 3 before the stage 3 eglibc is built can use it.
-# FIXME: get a better way of finding the name of the loader. The lib64
-# path is hardcoded into eglibc in the file
-# sysdeps/unix/sysv/linux/configure.
-- install -d $DESTDIR/lib
-- |
- cpu=$(echo $TARGET | cut -d '-' -f 1)
- case "$cpu" in
- x86_64)
- install -d "$DESTDIR/lib64"
- ln -s "$PREFIX/lib/ld-linux-x86-64.so.2" \
- "$DESTDIR/lib64/ld-linux-x86-64.so.2" ;;
- ppc64)
- install -d "$DESTDIR/lib64"
- ln -s "$PREFIX/lib/ld64.so.1" \
- "$DESTDIR/lib64/ld64.so.1" ;;
- *)
- loader=$(basename $(ls "$DESTDIR$PREFIX"/lib/ld-linux*))
- ln -s "$PREFIX/lib/$loader" "$DESTDIR/lib/$loader"
- esac