From 6e73d8531ba409e513c2d491d473a7b593614733 Mon Sep 17 00:00:00 2001 From: Jan Breuer <jan.breuer@jaybee.cz> Date: 周日, 19 4月 2015 05:31:39 +0800 Subject: [PATCH] Remove generationg .so and update makefiles --- examples/test-interactive/Makefile | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/test-interactive/Makefile b/examples/test-interactive/Makefile index 1d225a9..3338b7b 100644 --- a/examples/test-interactive/Makefile +++ b/examples/test-interactive/Makefile @@ -3,8 +3,9 @@ SRCS = main.c ../common/scpi-def.c CFLAGS += -Wextra -I ../../libscpi/inc/ -LDFLAGS += ../../libscpi/dist/libscpi.a +LDFLAGS += ../../libscpi/dist/libscpi.a -Wl,--as-needed +.PHONY: clean all all: $(PROG) @@ -14,7 +15,7 @@ $(CC) -c $(CFLAGS) $(CPPFLAGS) -o $@ $< $(PROG): $(OBJS) - $(CC) -o $@ $(OBJS) $(LDFLAGS) + $(CC) -o $@ $(OBJS) $(CFLAGS) $(LDFLAGS) clean: $(RM) $(PROG) $(OBJS) -- Gitblit v1.9.1