]>
Commit | Line | Data |
---|---|---|
0146ea53 MT |
1 | diff --git a/Makefile b/Makefile |
2 | index 91a2991..1d27655 100644 | |
3 | --- a/Makefile | |
4 | +++ b/Makefile | |
5 | @@ -87,7 +87,7 @@ libs: | |
6 | make -C libipvs | |
7 | ||
8 | ipvsadm: $(OBJS) $(STATIC_LIBS) | |
9 | - $(CC) $(CFLAGS) -o $@ $^ $(LIBS) | |
10 | + $(CC) $(LDFLAGS) -o $@ $^ $(LIBS) | |
11 | ||
12 | install: all | |
13 | if [ ! -d $(SBIN) ]; then $(MKDIR) -p $(SBIN); fi | |
14 | diff --git a/libipvs/Makefile b/libipvs/Makefile | |
15 | index f845c8b..46cd4eb 100644 | |
16 | --- a/libipvs/Makefile | |
17 | +++ b/libipvs/Makefile | |
18 | @@ -33,7 +33,7 @@ $(STATIC_LIB): libipvs.o ip_vs_nl_policy.o | |
19 | ar rv $@ $^ | |
20 | ||
21 | $(SHARED_LIB): libipvs.o ip_vs_nl_policy.o | |
22 | - $(CC) -shared -Wl,-soname,$@ -o $@ $^ | |
23 | + $(CC) $(LDFLAGS) -shared -Wl,-soname,$@ -o $@ $^ | |
24 | ||
25 | %.o: %.c | |
26 | $(CC) $(CFLAGS) $(INCLUDE) $(DEFINES) -c -o $@ $< |