mkosi: Ensure we build with debuginfo
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 30 Oct 2024 18:03:49 +0000 (19:03 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 30 Oct 2024 19:48:18 +0000 (19:48 +0000)
mkosi.images/build/mkosi.conf.d/arch/mkosi.build.chroot
mkosi.images/build/mkosi.conf.d/centos-fedora/mkosi.build.chroot
mkosi.images/build/mkosi.conf.d/debian-ubuntu/mkosi.build.chroot
mkosi.images/build/mkosi.conf.d/opensuse/mkosi.build.chroot

index 0267b3c876a3f2edd623062507b27d0882b71656..f0bdcc13e63f015c0b477984794affb27f7d1823 100755 (executable)
@@ -21,7 +21,7 @@ ln --symbolic "$SRCDIR" "pkg/$PKG_SUBDIR/systemd"
 ln --symbolic "$BUILDDIR" "pkg/$PKG_SUBDIR/build"
 ln --symbolic . "pkg/$PKG_SUBDIR/src"
 
-MKOSI_CFLAGS="-O0 -Wp,-U_FORTIFY_SOURCE"
+MKOSI_CFLAGS="-O0 -g -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 8ad3f328c473499bc81319386314938c4e72a604..1c019e162c1d60a7172288300304662fed143487 100755 (executable)
@@ -34,7 +34,7 @@ COMMON_MACRO_OVERRIDES=(
 )
 
 # TODO: Drop -U_FORTIFY_SOURCE when we switch to CentOS Stream 10.
-MKOSI_CFLAGS="-O0 -Wp,-U_FORTIFY_SOURCE"
+MKOSI_CFLAGS="-O0 -g -Wp,-U_FORTIFY_SOURCE"
 if ((WITH_DEBUG)); then
     MKOSI_CFLAGS="$MKOSI_CFLAGS -fdebug-prefix-map=../src=/usr/src/debug/systemd"
 fi
index fe8a49748ade7612452d9aa5b82a9050f710058a..45b9bd06af112f0e910fe6005909780ff50b441e 100755 (executable)
@@ -33,7 +33,7 @@ EOF
 cat debian/changelog >>debian/changelog.new
 mv debian/changelog.new debian/changelog
 
-MKOSI_CFLAGS="-O0"
+MKOSI_CFLAGS="-O0 -g"
 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 9043ef6746c839a52f4e2b41fd16facbfd240605..6c1cf2aed4b740d22bdcc4db15273a8180afb857 100755 (executable)
@@ -28,7 +28,7 @@ fi
 VERSION="$(cat meson.version)"
 RELEASE="$(date "+%Y%m%d%H%M%S" --date "@$TS")"
 
-MKOSI_CFLAGS="-O0 -Wp,-U_FORTIFY_SOURCE"
+MKOSI_CFLAGS="-O0 -g -Wp,-U_FORTIFY_SOURCE"
 if ((WITH_DEBUG)); then
     MKOSI_CFLAGS="$MKOSI_CFLAGS -fdebug-prefix-map=../src=/usr/src/debug/systemd"
 fi