[PATCH] tools/vm/Makefile: Honor EXTRA_* flags

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Passing custom compiler flags is pretty much impossible otherwise due to
the way standard variables CFLAGS and LDFLAGS are being assigned to.

The recursive make call in tools/lib/api already supports EXTRA_CFLAGS
at least, so follow this path instead of reinventing the wheel.

Signed-off-by: Phil Sutter <phil@xxxxxx>
Cc: Dave Young <dyoung@xxxxxxxxxx>
---
Please keep me in Cc, I'm not subscribed to this list.
---
 tools/vm/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/vm/Makefile b/tools/vm/Makefile
index 9860622cbb151..ce1ed324d6c01 100644
--- a/tools/vm/Makefile
+++ b/tools/vm/Makefile
@@ -8,8 +8,8 @@ TARGETS=page-types slabinfo page_owner_sort
 LIB_DIR = ../lib/api
 LIBS = $(LIB_DIR)/libapi.a
 
-CFLAGS = -Wall -Wextra -I../lib/
-LDFLAGS = $(LIBS)
+CFLAGS = -Wall -Wextra -I../lib/ $(EXTRA_CFLAGS)
+LDFLAGS = $(LIBS) $(EXTRA_LDFLAGS)
 
 all: $(TARGETS)
 
-- 
2.38.0




[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux