From 1553779731316865d4ce03e2febc1e2c5d8be759 Mon Sep 17 00:00:00 2001 From: Sadoon Albader Date: Fri, 25 Aug 2023 18:43:09 +0300 Subject: [PATCH] split scripts to make building glibc easier --- add-sffs-flags-debian | 13 +++++++++++++ mk-schroot-bookworm | 4 ---- 2 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 add-sffs-flags-debian diff --git a/add-sffs-flags-debian b/add-sffs-flags-debian new file mode 100644 index 0000000..81875e7 --- /dev/null +++ b/add-sffs-flags-debian @@ -0,0 +1,13 @@ +#!/bin/bash + +if [ "$EUID" -ne 0 ] + then echo "Please run as root" + exit +fi + +SCHROOT_DIR=/srv/chroot/bookworm-ppc64el-sbuild + +tee $SCHROOT_DIR/etc/dpkg/buildflags.conf << EOF +APPEND CFLAGS -mcpu=power9 -mno-altivec -mno-vsx -mno-crypto -mno-htm -mlong-double-64 +APPEND CXXFLAGS -mcpu=power9 -mno-altivec -mno-vsx -mno-crypto -mno-htm -mlong-double-64 +EOF diff --git a/mk-schroot-bookworm b/mk-schroot-bookworm index 9633549..0bb825d 100755 --- a/mk-schroot-bookworm +++ b/mk-schroot-bookworm @@ -14,7 +14,3 @@ RELEASE=bookworm sbuild-createchroot --include=eatmydata,ccache $RELEASE $SCHROOT_DIR http://127.0.0.1:3142/$DEBMIRROR/debian -tee $SCHROOT_DIR/etc/dpkg/buildflags.conf << EOF -APPEND CFLAGS -mcpu=power9 -mno-altivec -mno-vsx -mno-crypto -mno-htm -mlong-double-64 -APPEND CXXFLAGS -mcpu=power9 -mno-altivec -mno-vsx -mno-crypto -mno-htm -mlong-double-64 -EOF -- 2.30.2