don't make veth a shared library
Making veth a shared library for ip caused build problems (not PIC) and is unneeded. Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
This commit is contained in:
parent
7b40f0f2e1
commit
e32d4db0a5
12
ip/Makefile
12
ip/Makefile
|
|
@ -1,16 +1,14 @@
|
||||||
IPOBJ=ip.o ipaddress.o iproute.o iprule.o \
|
IPOBJ=ip.o ipaddress.o iproute.o iprule.o \
|
||||||
rtm_map.o iptunnel.o ip6tunnel.o tunnel.o ipneigh.o ipntable.o iplink.o \
|
rtm_map.o iptunnel.o ip6tunnel.o tunnel.o ipneigh.o ipntable.o iplink.o \
|
||||||
ipmaddr.o ipmonitor.o ipmroute.o ipprefix.o \
|
ipmaddr.o ipmonitor.o ipmroute.o ipprefix.o \
|
||||||
ipxfrm.o xfrm_state.o xfrm_policy.o xfrm_monitor.o
|
ipxfrm.o xfrm_state.o xfrm_policy.o xfrm_monitor.o \
|
||||||
|
iplink_vlan.o link_veth.o
|
||||||
IPOBJ += iplink_vlan.o
|
|
||||||
|
|
||||||
RTMONOBJ=rtmon.o
|
RTMONOBJ=rtmon.o
|
||||||
|
|
||||||
ALLOBJ=$(IPOBJ) $(RTMONOBJ)
|
ALLOBJ=$(IPOBJ) $(RTMONOBJ)
|
||||||
SCRIPTS=ifcfg rtpr routel routef
|
SCRIPTS=ifcfg rtpr routel routef
|
||||||
TARGETS=ip rtmon
|
TARGETS=ip rtmon
|
||||||
LIBS=link_veth.so
|
|
||||||
|
|
||||||
all: $(TARGETS) $(SCRIPTS) $(LIBS)
|
all: $(TARGETS) $(SCRIPTS) $(LIBS)
|
||||||
|
|
||||||
|
|
@ -25,8 +23,4 @@ install: all
|
||||||
clean:
|
clean:
|
||||||
rm -f $(ALLOBJ) $(TARGETS)
|
rm -f $(ALLOBJ) $(TARGETS)
|
||||||
|
|
||||||
LDLIBS += -ldl
|
LDLIBS += -ldl
|
||||||
LDFLAGS += -Wl,-export-dynamic
|
|
||||||
|
|
||||||
%.so: %.c
|
|
||||||
$(CC) $(CFLAGS) -shared $< -o $@
|
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue