]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Revert "meson: shrink developer-mode build artifacts"
authorLuca Boccassi <luca.boccassi@gmail.com>
Wed, 20 May 2026 14:51:17 +0000 (15:51 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 20 May 2026 15:21:54 +0000 (16:21 +0100)
This reverts commit 68910161491cdd161bff29a32032e52301831164.

meson.build
mkosi/mkosi.images/build/mkosi.conf.d/debian-ubuntu/mkosi.build.chroot

index 9529ea7b0648a75dbcf4e69908c33168361c5fb8..2f5bece79ded815b0d25c13587d7d5df3b339f18 100644 (file)
@@ -501,12 +501,6 @@ possible_cc_flags = [
 
 if get_option('mode') == 'developer'
         possible_cc_flags += '-fno-omit-frame-pointer'
-        # Let -Wl,--gc-sections drop unused functions/data instead of whole
-        # .o files; biggest win on statically-linked NSS/PAM modules.
-        possible_cc_flags += ['-ffunction-sections', '-fdata-sections']
-        # Compress and dedupe DWARF; transparent to GDB / readelf.
-        possible_cc_flags += ['-gz=zstd', '-fdebug-types-section']
-        possible_link_flags += '-Wl,--compress-debug-sections=zstd'
 endif
 
 add_project_arguments(
index 3db60289037ac11e17f63d0565a0c69d46c08066..02d4c3e5cb9cff052ab4ac30d88bc12f704ca34e 100755 (executable)
@@ -40,12 +40,6 @@ if [[ -d "$SRCDIR/debian/patches" ]]; then
     mount --bind /tmp/patches "$SRCDIR/debian/patches"
 fi
 
-# mode=developer enables -Wl,--compress-debug-sections=zstd in meson.build, which dwz cannot process.
-cp "$SRCDIR/debian/rules" /tmp/rules
-chmod +x /tmp/rules
-printf '\noverride_dh_dwz:\n' >>/tmp/rules
-mount --bind /tmp/rules "$SRCDIR/debian/rules"
-
 # While the build directory can be specified through DH_OPTIONS, the default one is hardcoded everywhere so
 # we have to use that. Because it is architecture dependent, we query it using dpkg-architecture first.
 DEB_HOST_GNU_TYPE="$(dpkg-architecture --query DEB_HOST_GNU_TYPE)"