none_1348602a834332901057e7b1b99c447eedf7d47e.hash-material.yml 5.22 KiB
- "add_to_path": []
"builds":
"default":
"build_dependencies": []
"configure": |
mkdir -p "$BUILD_DIR/source"
extract.sh --into "$BUILD_DIR/source" https://ftp.gnu.org/gnu/glibc/glibc-2.13.tar.xz
sed -i 's|test -n ".critic_missing"|false|g' "$BUILD_DIR/source/configure"
sed -i 's|struct obstack ._obstack_compat|\0 = 0|g' "$BUILD_DIR/source/malloc/obstack.c"
patch-if-exists "${ORCHESTRA_DOTDIR}/patches/glibc-2.13-fix-isinf.patch" "$BUILD_DIR/source"
# Create __libc_single_threaded symbol (required by recent libstdc++)
echo 'char __libc_single_threaded;' >> "$BUILD_DIR/source/misc/error.c"
sed -i \
's/GLIBC_2.13/GLIBC_2.13\n GLIBC_2.32/' \
"$BUILD_DIR/source/Versions.def"
sed -i \
's/^}/ GLIBC_2.32 {\n __libc_single_threaded;\n }\n}/g' \
"$BUILD_DIR/source/misc/Versions"
cd $BUILD_DIR
export CC="cc -no-pie -fuse-ld=bfd -Wl,-z,origin -Wl,--enable-new-dtags -Wl,-rpath,$RPATH_PLACEHOLDER/link-only/lib"
./source/configure \
--disable-profile \
--without-gd \
--enable-crypt \
--disable-static-pie \
--disable-systemtap \
--disable-nscd \
--disable-timezone-tools \
--enable-stack-protector=strong \
--enable-stackguard-randomization \
--disable-cet \
--without-selinux \
--without-cvs \
--disable-werror \
--enable-bind-now \
--disable-sanity-checks \
--prefix="$INSTALL_LINK_ONLY_PATH" \
CFLAGS="-w -O2 -fno-stack-protector -DNDEBUG -march=core2 -U_FORTIFY_SOURCE"
"dependencies": []
"install": |
cd "$BUILD_DIR"
make ${JOBS:+-j$JOBS}
make ${JOBS:+-j$JOBS} install_root="$DESTDIR" install
sed -i "s|$INSTALL_LINK_ONLY_PATH/lib/||g" \
"$DESTDIR$INSTALL_LINK_ONLY_PATH/lib/libpthread.so" \
"$DESTDIR$INSTALL_LINK_ONLY_PATH/lib/libc.so"
ln -s . "$DESTDIR$INSTALL_LINK_ONLY_PATH/usr"
rm -f "$DESTDIR$INSTALL_LINK_ONLY_PATH"/libexec/getconf/POSIX_V7_LP64_OFF64*
rm -rf "$DESTDIR$INSTALL_LINK_ONLY_PATH"/bin
cp -a "$DESTDIR$INSTALL_LINK_ONLY_PATH"/lib/*.o "$DESTDIR$ORCHESTRA_ROOT"/lib/
# This file is needed because gcc fixinclude detects it when bootstrapping toolchains
touch "$DESTDIR$INSTALL_LINK_ONLY_PATH/include/stdc-predef.h"
"ndebug": !!bool |-
true
"commit": !!null |-
null
"default_build": |-
default
"license": |-
source/COPYING
"repository": !!null |-
null
"skip_post_install": !!bool |-
false
- "add_to_path": []
"builds":