mirror of
https://github.com/systemd/systemd.git
synced 2024-11-23 10:13:34 +08:00
mkosi: Ensure we build with debuginfo
This commit is contained in:
parent
d9fd1d3707
commit
954dd5242b
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user