]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Build with -O0 by default
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 4 Jun 2024 13:53:06 +0000 (15:53 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 4 Jun 2024 13:53:06 +0000 (15:53 +0200)
This was accidentally removed in https://github.com/systemd/systemd/pull/33193

mkosi.images/system/mkosi.conf.d/10-arch/mkosi.build.chroot
mkosi.images/system/mkosi.conf.d/10-centos-fedora/mkosi.build.chroot
mkosi.images/system/mkosi.conf.d/10-debian-ubuntu/mkosi.build.chroot
mkosi.images/system/mkosi.conf.d/10-opensuse/mkosi.build.chroot

index 60b6444bfc16ec26900219ebe04712e56baa2927..7c862d527c6bba1c60d1cc9899b5330363d95656 100755 (executable)
@@ -24,7 +24,7 @@ ln --symbolic . "pkg/$ID/src"
 # shellcheck source=/dev/null
 . /etc/makepkg.conf
 
-MKOSI_CFLAGS="-Wp,-U_FORTIFY_SOURCE"
+MKOSI_CFLAGS="-O0 -Wp,-U_FORTIFY_SOURCE"
 if ((LLVM)); then
     # TODO: Remove -fno-sanitize-function when https://github.com/systemd/systemd/issues/29972 is fixed.
     MKOSI_CFLAGS="$MKOSI_CFLAGS -shared-libasan -fno-sanitize=function"
index 31069aa8b3d5402ee7149d899033015fec5a63bb..2c057876544080fbc377b9efde82be6ae118a6e2 100755 (executable)
@@ -47,7 +47,7 @@ COMMON_MACRO_OVERRIDES=(
 )
 
 # TODO: Drop -U_FORTIFY_SOURCE when we switch to CentOS Stream 10.
-MKOSI_CFLAGS="-Wp,-U_FORTIFY_SOURCE"
+MKOSI_CFLAGS="-O0 -Wp,-U_FORTIFY_SOURCE"
 if ((WITH_DEBUG)); then
     MKOSI_CFLAGS="$MKOSI_CFLAGS -fdebug-prefix-map=../src=$SRCDEST"
 fi
index 1b8fe586ca2009b7e71e1eec2f19c71a94de90fd..7e4eab994005dd5bc41686f636856016689e22b9 100755 (executable)
@@ -44,7 +44,7 @@ EOF
 cat debian/changelog >>debian/changelog.new
 mv debian/changelog.new debian/changelog
 
-MKOSI_CFLAGS=""
+MKOSI_CFLAGS="-O0"
 if ((LLVM)); then
     # TODO: Remove -fno-sanitize-function when https://github.com/systemd/systemd/issues/29972 is fixed.
     MKOSI_CFLAGS="$MKOSI_CFLAGS -shared-libasan -fno-sanitize=function"
index 4add69085d5fee529c3aac1efff68f5b839fba8f..3d6cc58b64def5243fc499d2f098427a99d4aed1 100755 (executable)
@@ -42,7 +42,7 @@ DIST="$(rpm --eval %dist)"
 ARCH="$(rpm --eval %_arch)"
 SRCDEST="/usr/src/debug/systemd-$VERSION-${RELEASE}${DIST}.$ARCH"
 
-MKOSI_CFLAGS="-Wp,-U_FORTIFY_SOURCE"
+MKOSI_CFLAGS="-O0 -Wp,-U_FORTIFY_SOURCE"
 if ((WITH_DEBUG)); then
     MKOSI_CFLAGS="$MKOSI_CFLAGS -fdebug-prefix-map=../src=$SRCDEST"
 fi