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 <[email protected]> --- 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
