mirror of
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git
synced 2024-11-17 15:03:29 +08:00
d84914a0c5
get_link_kind() fails for statically linked modules (vlan, veth, etc.) if "ip" was linked without "export-dynamic". Signed-off-by: Vitaliy Gusev <vgusev@openvz.org> -- Thank, Vitaliy Gusev Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
29 lines
664 B
Makefile
29 lines
664 B
Makefile
IPOBJ=ip.o ipaddress.o iproute.o iprule.o \
|
|
rtm_map.o iptunnel.o ip6tunnel.o tunnel.o ipneigh.o ipntable.o iplink.o \
|
|
ipmaddr.o ipmonitor.o ipmroute.o ipprefix.o \
|
|
ipxfrm.o xfrm_state.o xfrm_policy.o xfrm_monitor.o \
|
|
iplink_vlan.o link_veth.o
|
|
|
|
RTMONOBJ=rtmon.o
|
|
|
|
ALLOBJ=$(IPOBJ) $(RTMONOBJ)
|
|
SCRIPTS=ifcfg rtpr routel routef
|
|
TARGETS=ip rtmon
|
|
|
|
all: $(TARGETS) $(SCRIPTS) $(LIBS)
|
|
|
|
ip: $(IPOBJ) $(LIBNETLINK) $(LIBUTIL)
|
|
|
|
rtmon: $(RTMONOBJ) $(LIBNETLINK)
|
|
|
|
install: all
|
|
install -m 0755 -s $(TARGETS) $(DESTDIR)$(SBINDIR)
|
|
install -m 0755 $(SCRIPTS) $(DESTDIR)$(SBINDIR)
|
|
|
|
clean:
|
|
rm -f $(ALLOBJ) $(TARGETS)
|
|
|
|
LDLIBS += -ldl
|
|
|
|
LDFLAGS += -Wl,-export-dynamic
|