[PATCH makedumpfile 2/9] Honor CFLAGS in extension/Makefile
Stephen Brennan
stephen.s.brennan at oracle.com
Mon Jul 13 17:45:35 PDT 2026
Currently CFLAGS are specified manually, so anything already provided in
the environment or from the calling make process is ignored.
Signed-off-by: Stephen Brennan <stephen.s.brennan at oracle.com>
---
extensions/Makefile | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/extensions/Makefile b/extensions/Makefile
index c112d56..25e0a07 100644
--- a/extensions/Makefile
+++ b/extensions/Makefile
@@ -3,8 +3,10 @@ CONTRIB_SO := sample.so erase_sample.so
all: $(CONTRIB_SO)
+CFLAGS += -fPIC -shared -Wl,-T,../makedumpfile.ld
+
$(CONTRIB_SO): %.so: %.c
- $(CC) -O2 -g -fPIC -shared -Wl,-T,../makedumpfile.ld -o $@ $^
+ $(CC) $(CFLAGS) -o $@ $^
clean:
rm -f $(CONTRIB_SO)
--
2.47.3
More information about the kexec
mailing list