blob: 78a4cb0fc23e63a1e42b241f93422278c47271ed [file] [log] [blame]
Andrew Geisslerac970dd2021-02-12 15:32:45 -06001From b6dba773491bbb7b4664dacdd87a12af860f1bd8 Mon Sep 17 00:00:00 2001
2From: Oleksiy Obitotskyy <oobitots@cisco.com>
3Date: Thu, 28 Jan 2021 05:43:33 -0800
4Subject: [PATCH] tests/makefile: Append CPPFLAGS rather then override
5
6CPPFLAGS overrided and we could miss some options needed.
7
8Upstream-Status: Submitted
9Signed-off-by: Oleksiy Obitotskyy <oobitots@cisco.com>
10---
11 tests/Makefile | 4 ++--
12 1 file changed, 2 insertions(+), 2 deletions(-)
13
14diff --git a/tests/Makefile b/tests/Makefile
15index 0ca3716..d262932 100644
16--- a/tests/Makefile
17+++ b/tests/Makefile
18@@ -33,8 +33,8 @@ HELPERS = get_hugetlbfs_path compare_kvers
19 HELPER_LIBS = libheapshrink.so
20 BADTOOLCHAIN = bad-toolchain.sh
21
22-CFLAGS = -O2 -Wall -g
23-CPPFLAGS = -I..
24+CFLAGS += -O2 -Wall -g
25+CPPFLAGS += -I..
26 STATIC_LIBHUGE = -Wl,--whole-archive -lhugetlbfs -Wl,--no-whole-archive
27 STATIC_LDLIBS = -Wl,--no-as-needed -lpthread
28 LDLIBS = $(STATIC_LDLIBS) -ldl -lhugetlbfs_privutils
29--
302.26.2.Cisco
31