From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NO_DNS_FOR_FROM,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from localhost.localdomain (unknown [182.253.183.172]) by gnuweeb.org (Postfix) with ESMTPSA id A05D08120D; Thu, 20 Oct 2022 13:15:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1666271718; bh=OaMVTSsfEcYCFvthGnXb2jIni7Cl0Y4rJzTrZVc6Uls=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QTEOyS4dLnmxIigdk8bGMnJb3ETyZWzUi8C/bB5u7IncXkSISTs36ep8FSnf0lldp jm4+DXvcDYmPpXB2cH2VWI07P72VPEdxcYJC/Q+8Ra0f9BbbAAJzZOgDMvQThUiedq N2KPdGyr2M2djSMfrHoQaXnt0YrVwkUoNxgjSLK2zInddGGNqdz109v/WGuYtasN3n DFWbRrS4vP1EB5XS4g/QFGhDQqpw7xNhyzciGEcaYpXJYaxB99JHJjPjMGXkPTT6q0 5GaHygKejJaJB5Bgt9VBuEK+nHIYRCnpc9txwFypw5ORSUgMVA1PZj3Cc1eZrbObn5 SkP3GcWRLE34A== From: Ammar Faizi To: Jens Axboe Cc: Dylan Yudaken , Ammar Faizi , Pavel Begunkov , GNU/Weeb Mailing List , io-uring Mailing List , Facebook Kernel Team Subject: [PATCH liburing v2 2/3] Makefile: Introduce `LIBURING_CFLAGS` variable Date: Thu, 20 Oct 2022 20:14:54 +0700 Message-Id: <20221020131118.13828-3-ammar.faizi@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221020131118.13828-1-ammar.faizi@intel.com> References: <20221020131118.13828-1-ammar.faizi@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: From: Ammar Faizi `LIBURING_CFLAGS` will be appended to `CFLAGS` but it only applies to files in the `src/` directory (the main library). The first use case of this variable is for appending a clang-specific flag, `-Wshorten-64-to-32` in the GitHub bot. Signed-off-by: Ammar Faizi --- src/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 73a98ba..09617fb 100644 --- a/src/Makefile +++ b/src/Makefile @@ -5,11 +5,14 @@ includedir ?= $(prefix)/include libdir ?= $(prefix)/lib libdevdir ?= $(prefix)/lib +LIBURING_CFLAGS ?= CPPFLAGS ?= override CPPFLAGS += -D_GNU_SOURCE \ -Iinclude/ -include ../config-host.h CFLAGS ?= -g -O3 -Wall -Wextra -fno-stack-protector -override CFLAGS += -Wno-unused-parameter -Wno-sign-compare -DLIBURING_INTERNAL +override CFLAGS += -Wno-unused-parameter -Wno-sign-compare \ + -DLIBURING_INTERNAL \ + $(LIBURING_CFLAGS) SO_CFLAGS=-fPIC $(CFLAGS) L_CFLAGS=$(CFLAGS) LINK_FLAGS= -- Ammar Faizi