none_e9af0f3402fc84d24f25eb82129fb00886d785f0.hash-material.yml 4.82 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"
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":
"default":
"build_dependencies":
- |-
glibc
"configure": |
mkdir -p "$BUILD_DIR"
extract.sh --into "$BUILD_DIR" "https://gmplib.org/download/gmp/gmp-6.1.2.tar.xz"
cd "$BUILD_DIR" && ./configure \