]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Set EXTRA_CFLAGS on opensuse
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 29 May 2024 08:50:16 +0000 (10:50 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 29 May 2024 09:26:06 +0000 (11:26 +0200)
The opensuse spec doesn't unconditionally set FORTIFY_SOURCE=2 anymore
so let's drop our workaround.

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

index 2fe3d9464c45fc3b53b0f93e3fb38475a9035dd9..8b6fc7ab13ced21025eedd95b874b0e803a37e70 100755 (executable)
@@ -40,9 +40,7 @@ DIST="$(rpm --eval %dist)"
 ARCH="$(rpm --eval %_arch)"
 SRCDEST="/usr/src/debug/systemd-$VERSION-${RELEASE}${DIST}.$ARCH"
 
-# TODO: Enable this when the opensuse spec stops unconditionally setting FORTIFY_SOURCE=2.
-# EXTRA_CFLAGS="-O${OPTIMIZATION:-0} -Wp,-U_FORTIFY_SOURCE"
-EXTRA_CFLAGS=""
+EXTRA_CFLAGS="-O${OPTIMIZATION:-0} -Wp,-U_FORTIFY_SOURCE"
 if ((WITH_DEBUG)); then
     EXTRA_CFLAGS="$EXTRA_CFLAGS -fdebug-prefix-map=../src=$SRCDEST"
 fi