mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 16:37:19 +09:00
mkosi: Use -fdebug-prefix-map= instead of -ffile-prefix-map=
-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.
This commit is contained in:
@@ -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=
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user