1cc_binary {
2    name: "tc",
3    defaults: ["iproute2_defaults"],
4
5    // ordering affects link order, so cannot be quite fully sorted
6    srcs: [
7        "emp_ematch.lex.c",
8        "emp_ematch.yacc.c",
9        "m_action.c",
10        "m_bpf.c",
11        "m_connmark.c",
12        "m_csum.c",
13        "m_ematch.c",
14        "m_estimator.c",
15        "m_gact.c",
16        "m_ife.c",
17        "m_mirred.c",
18        "m_pedit.c",
19        "m_police.c",
20        "m_sample.c",
21        "m_simple.c",
22        "m_skbedit.c",
23        "m_skbmod.c",
24        "m_tunnel_key.c",
25        "m_vlan.c",
26        "f_basic.c",
27        "f_bpf.c",
28        "f_cgroup.c",
29        "f_flow.c",
30        "f_flower.c",
31        "f_fw.c",
32        "f_matchall.c",
33        "f_route.c",
34        "f_rsvp.c",
35        "f_tcindex.c",
36        "f_u32.c",
37        "q_cbq.c",
38        "q_clsact.c",
39        "q_codel.c",
40        "q_drr.c",
41        "q_dsmark.c",
42        "q_fifo.c",
43        "q_fq.c",
44        "q_fq_codel.c",
45        "q_hfsc.c",
46        "q_hhf.c",
47        "q_htb.c",
48        "q_ingress.c",
49        "q_mqprio.c",
50        "q_multiq.c",
51        "q_netem.c",
52        "q_pie.c",
53        "q_prio.c",
54        "q_qfq.c",
55        "q_rr.c",
56        "q_sfb.c",
57        "q_tbf.c",
58        "static-syms.c",
59        "tc.c",
60        "tc_cbq.c",
61        "tc_class.c",
62        "tc_core.c",
63        "tc_estimator.c",
64        "tc_exec.c",
65        "tc_filter.c",
66        "tc_monitor.c",
67        "tc_qdisc.c",
68        "tc_red.c",
69        "tc_stab.c",
70        "tc_util.c",
71        "q_choke.c",
72        "q_gred.c",
73        "q_red.c",
74        "q_sfq.c",
75    ],
76
77    shared_libs: [
78        "libiprouteutil",
79        "libnetlink",
80    ],
81
82    cflags: [
83        "-Wno-missing-field-initializers",
84        "-Wno-unneeded-internal-declaration",
85    ],
86
87    // This is a work around for b/18403920
88    ldflags: ["-Wl,--no-gc-sections"],
89}
90