Add our dpkg-buildflags to schroot
authorSadoon Albader <sadoon@soulserv.xyz>
Fri, 18 Aug 2023 12:19:53 +0000 (15:19 +0300)
committerSadoon Albader <sadoon@soulserv.xyz>
Fri, 18 Aug 2023 12:19:53 +0000 (15:19 +0300)
mk-schroot-bookworm

index e660052acf01991aa3967c1b9fe56e249821d248..7b97e194be00d67887befd5604d4f50ead865767 100644 (file)
@@ -16,3 +16,7 @@ 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