]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Use -fdebug-prefix-map= instead of -ffile-prefix-map=
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 22 Apr 2024 21:45:50 +0000 (23:45 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 23 Apr 2024 08:25:02 +0000 (10:25 +0200)
-ffile-prefix-map= implies -fmacro-prefix-map= which is incompatible
with our definition of PROJECT_FILE.

See https://github.com/systemd/systemd/issues/32417.

-fdebug-prefix-map= only affects debuginfo without affecting macros.

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

index 79770c0d4f85b40ad6488396adcd7c1bec9a5466..fb3ca65ab3d10a4a11eb13d657fc3aa291206e14 100755 (executable)
@@ -34,7 +34,7 @@ SRCDEST="/usr/src/debug/systemd-$VERSION-${RELEASE}${DIST}.$ARCH"
 # TODO: Drop -U_FORTIFY_SOURCE when we switch to CentOS Stream 10.
 CFLAGS="$(rpm --define "_fortify_level 0" --undefine _lto_cflags --eval %build_cflags) -O${OPTIMIZATION:-0} -Wp,-U_FORTIFY_SOURCE"
 if ((WITH_DEBUG)); then
-    CFLAGS="$CFLAGS -ffile-prefix-map=../src=$SRCDEST"
+    CFLAGS="$CFLAGS -fdebug-prefix-map=../src=$SRCDEST"
 fi
 
 IFS=
index 6d097791644cd2a93a1fe84eff308eabcd078900..da4c1df556ab5135effd363f920285f20f5a6fb8 100755 (executable)
@@ -40,7 +40,7 @@ SRCDEST="/usr/src/debug/systemd-$VERSION-${RELEASE}${DIST}.$ARCH"
 # EXTRA_CFLAGS="-O${OPTIMIZATION:-0} -Wp,-U_FORTIFY_SOURCE"
 EXTRA_CFLAGS=""
 if ((WITH_DEBUG)); then
-    EXTRA_CFLAGS="$EXTRA_CFLAGS -ffile-prefix-map=../src=$SRCDEST"
+    EXTRA_CFLAGS="$EXTRA_CFLAGS -fdebug-prefix-map=../src=$SRCDEST"
 fi
 
 build() {