1cc_binary { 2 name: "ip", 3 defaults: ["iproute2_defaults"], 4 5 // ordering affects link order, so cannot be quite fully sorted 6 srcs: [ 7 "ip6tunnel.c", 8 "ipaddress.c", 9 "ipaddrlabel.c", 10 "ip.c", 11 "ipfou.c", 12 "ipila.c", 13 "ipl2tp.c", 14 "iplink_bridge.c", 15 "iplink_bridge_slave.c", 16 "iplink.c", 17 "iplink_can.c", 18 "iplink_dummy.c", 19 "iplink_geneve.c", 20 "iplink_hsr.c", 21 "iplink_ifb.c", 22 "iplink_ipoib.c", 23 "iplink_ipvlan.c", 24 "iplink_macvlan.c", 25 "iplink_nlmon.c", 26 "iplink_team.c", 27 "iplink_vcan.c", 28 "iplink_vlan.c", 29 "iplink_vrf.c", 30 "iplink_vxcan.c", 31 "iplink_vxlan.c", 32 "iplink_xdp.c", 33 "iplink_xstats.c", 34 "ipmacsec.c", 35 "ipmaddr.c", 36 "ipmonitor.c", 37 "ipmroute.c", 38 "ipneigh.c", 39 "ipnetconf.c", 40 "ipnetns.c", 41 "ipntable.c", 42 "ipprefix.c", 43 "iproute.c", 44 "iproute_lwtunnel.c", 45 "iprule.c", 46 "ipseg6.c", 47 "iptoken.c", 48 "iptunnel.c", 49 "iptuntap.c", 50 "ipvrf.c", 51 "ipxfrm.c", 52 "link_gre6.c", 53 "link_gre.c", 54 "link_ip6tnl.c", 55 "link_iptnl.c", 56 "link_veth.c", 57 "link_vti6.c", 58 "link_vti.c", 59 "rtm_map.c", 60 "static-syms.c", 61 "tcp_metrics.c", 62 "tunnel.c", 63 "xfrm_monitor.c", 64 "xfrm_policy.c", 65 "xfrm_state.c", 66 ], 67 68 shared_libs: [ 69 "libiprouteutil", 70 "libnetlink", 71 ], 72 73 cflags: [ 74 "-Wno-implicit-function-declaration", 75 "-Wno-int-conversion", 76 "-Wno-missing-field-initializers", 77 "-D_GNU_SOURCE", 78 "-DNETNS_RUN_DIR=\"" + NETNS_RUN_DIR + "\"", 79 ], 80 81 ldflags: [ 82 "-Wl,-export-dynamic", 83 "-Wl,--no-gc-sections", 84 ], 85} 86