summaryrefslogtreecommitdiff
path: root/kdebug
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2021-09-01 16:53:17 +0200
committerAndrew G. Morgan <morgan@kernel.org>2021-09-01 19:17:05 -0700
commit2762c2c1a8c98d9012fcd40f20d133493a0b3219 (patch)
tree7b72d2b1c2660fed4549bc843d8fca58c530627d /kdebug
parent41f065cdc95f8bbe79ccba94cff20cd5434f7d2a (diff)
downloadlibcap2-2762c2c1a8c98d9012fcd40f20d133493a0b3219.tar.gz
Canonicalize build system
* Respect user's CFLAGS/CPPFLAGS/LDFLAGS * Respect $(MAKE) * Remove CPPFLAGS from link rules Note: for in-tree built test binaries, where we build --static, we do not apply LDFLAGS: we want to limit external dependencies in general; and users' LDFLAGS have a strong tendency to conflict with --static for linking. Work in collaboration with David Seifert (ie, he wrote most of it). Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
Diffstat (limited to 'kdebug')
-rw-r--r--kdebug/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/kdebug/Makefile b/kdebug/Makefile
index 0e8c11f..35a16d0 100644
--- a/kdebug/Makefile
+++ b/kdebug/Makefile
@@ -10,7 +10,7 @@ shell: exit
./test-kernel.sh
exit: exit.c
- $(CC) -O2 $< -o $@ --static
+ $(CC) $(CFLAGS) $(CPPFLAGS) $< -o $@ --static
all:
@echo cd to kdebug to test a kernel build