Kernel KVM virtualization development
 help / color / mirror / Atom feed
From: Yao Yuan <yaoyuan@linux.alibaba.com>
To: kvm@vger.kernel.org, julien.thierry.kdev@gmail.com, will@kernel.org
Cc: yaoyuan0329os@gmail.com, yaoyuan@linux.alibaba.com
Subject: [PATCH kvmtool 1/1] Makefile: Don't set -CFLAGS := in Makefile
Date: Mon, 17 Aug 2026 16:45:34 +0800	[thread overview]
Message-ID: <20260817084534.92780-2-yaoyuan@linux.alibaba.com> (raw)
In-Reply-To: <20260817084534.92780-1-yaoyuan@linux.alibaba.com>

Don't set CFLAGS to empty in the Makefile to allow
set the addtional CFLAGS option from environment,
support e.g native static compiling.

Signed-off-by: Yao Yuan <yaoyuan@linux.alibaba.com>
---
 Makefile | 1 -
 1 file changed, 1 deletion(-)

diff --git a/Makefile b/Makefile
index 60e551f..6755910 100644
--- a/Makefile
+++ b/Makefile
@@ -20,7 +20,6 @@ include config/feature-tests.mak
 -include $(OUTPUT)KVMTOOLS-VERSION-FILE
 
 CC	:= $(CROSS_COMPILE)gcc
-CFLAGS	:=
 LD	:= $(CROSS_COMPILE)ld
 LDFLAGS	:=
 OBJCOPY	:= $(CROSS_COMPILE)objcopy
-- 
2.43.5


  reply	other threads:[~2026-08-17  8:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-17  8:45 [PATCH kvmtool 0/1] Don't empty CFLAGS in Makefile for static building Yao Yuan
2026-08-17  8:45 ` Yao Yuan [this message]
2026-08-17  9:43 ` Alexandru Elisei
2026-08-18  0:35   ` Yao Yuan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260817084534.92780-2-yaoyuan@linux.alibaba.com \
    --to=yaoyuan@linux.alibaba.com \
    --cc=julien.thierry.kdev@gmail.com \
    --cc=kvm@vger.kernel.org \
    --cc=will@kernel.org \
    --cc=yaoyuan0329os@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox