mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-02 11:38:07 -07:00
Closes: https://bugs.gentoo.org/852797 Closes: https://bugs.gentoo.org/852776 Signed-off-by: Yixun Lan <dlan@gentoo.org>
23 lines
743 B
Diff
23 lines
743 B
Diff
diff --git a/Makefile b/Makefile
|
|
index 566c3e0..aa65fd7 100644
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -10,7 +10,7 @@ srctree := $(patsubst %/,%,$(dir $(srctree)))
|
|
endif
|
|
|
|
LIBSRC = $(srctree)/lib/bootconfig.c $(srctree)/include/linux/bootconfig.h
|
|
-CFLAGS = -Wall -g -I$(CURDIR)/include
|
|
+CFLAGS += -Wall -I$(CURDIR)/include
|
|
|
|
ALL_TARGETS := bootconfig
|
|
ALL_PROGRAMS := $(patsubst %,$(OUTPUT)%,$(ALL_TARGETS))
|
|
@@ -18,7 +18,7 @@ ALL_PROGRAMS := $(patsubst %,$(OUTPUT)%,$(ALL_TARGETS))
|
|
all: $(ALL_PROGRAMS) test
|
|
|
|
$(OUTPUT)bootconfig: main.c include/linux/bootconfig.h $(LIBSRC)
|
|
- $(CC) $(filter %.c,$^) $(CFLAGS) -o $@
|
|
+ $(CC) $(filter %.c,$^) $(CFLAGS) $(LDFLAGS) -o $@
|
|
|
|
test: $(ALL_PROGRAMS) test-bootconfig.sh
|
|
./test-bootconfig.sh $(OUTPUT)
|