diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-10-30 19:03:49 +0100 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2024-10-30 20:48:18 +0100 |
commit | 954dd5242b6c6bb3d0d45cd1ac4f2706552e8ba6 (patch) | |
tree | 23ff3ae7f4cac2127ad2927e38adfb60efef0ea8 /mkosi.images | |
parent | coredump: allow only empty messages after first "sentinel" (diff) | |
download | systemd-954dd5242b6c6bb3d0d45cd1ac4f2706552e8ba6.tar.xz systemd-954dd5242b6c6bb3d0d45cd1ac4f2706552e8ba6.zip |
mkosi: Ensure we build with debuginfo
Diffstat (limited to 'mkosi.images')
4 files changed, 4 insertions, 4 deletions
diff --git a/mkosi.images/build/mkosi.conf.d/arch/mkosi.build.chroot b/mkosi.images/build/mkosi.conf.d/arch/mkosi.build.chroot index 0267b3c876..f0bdcc13e6 100755 --- a/mkosi.images/build/mkosi.conf.d/arch/mkosi.build.chroot +++ b/mkosi.images/build/mkosi.conf.d/arch/mkosi.build.chroot @@ -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" diff --git a/mkosi.images/build/mkosi.conf.d/centos-fedora/mkosi.build.chroot b/mkosi.images/build/mkosi.conf.d/centos-fedora/mkosi.build.chroot index 8ad3f328c4..1c019e162c 100755 --- a/mkosi.images/build/mkosi.conf.d/centos-fedora/mkosi.build.chroot +++ b/mkosi.images/build/mkosi.conf.d/centos-fedora/mkosi.build.chroot @@ -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 diff --git a/mkosi.images/build/mkosi.conf.d/debian-ubuntu/mkosi.build.chroot b/mkosi.images/build/mkosi.conf.d/debian-ubuntu/mkosi.build.chroot index fe8a49748a..45b9bd06af 100755 --- a/mkosi.images/build/mkosi.conf.d/debian-ubuntu/mkosi.build.chroot +++ b/mkosi.images/build/mkosi.conf.d/debian-ubuntu/mkosi.build.chroot @@ -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" diff --git a/mkosi.images/build/mkosi.conf.d/opensuse/mkosi.build.chroot b/mkosi.images/build/mkosi.conf.d/opensuse/mkosi.build.chroot index 9043ef6746..6c1cf2aed4 100755 --- a/mkosi.images/build/mkosi.conf.d/opensuse/mkosi.build.chroot +++ b/mkosi.images/build/mkosi.conf.d/opensuse/mkosi.build.chroot @@ -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 |