]> git.proxmox.com Git - pve-qemu.git/commitdiff
buildsys: avoid handling noopt locally, rather extend CFLAGS
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 23 May 2023 12:09:03 +0000 (14:09 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 23 May 2023 12:09:12 +0000 (14:09 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
debian/rules

index 705c4b1796aefa6208a2f44fb385eedf99861217..4d06697e24045aa55ebc14990007b5f9354f0d6d 100755 (executable)
@@ -17,16 +17,8 @@ machinefile := $(destdir)/usr/share/kvm/machine-versions-x86_64.json
 # default QEMU out-of-tree build directory is ./build
 BUILDDIR=build
 
-CFLAGS = -Wall
-
-# FIXME: There is a second -02 added because of meson.build in the subproject
-# and that is appended after -O0 from here (last -O wins), so supporting noopt
-# doesn't work like this.
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-       CFLAGS += -O0
-else
-       CFLAGS += -O2
-endif
+# FIXME: pass to configure as --extra-cflags=CFLAGS ?! also LDFLAGS?
+CFLAGS += -Wall
 
 export CFLAGS