1cc_library_shared { 2 name: "libiprouteutil", 3 defaults: ["iproute2_defaults"], 4 5 system_shared_libs: [ 6 "libc", 7 "libdl", 8 ], 9 10 srcs: [ 11 "color.c", 12 "utils.c", 13 "rt_names.c", 14 "ll_types.c", 15 "ll_proto.c", 16 "ll_addr.c", 17 "inet_proto.c", 18 "mpls_pton.c", 19 "namespace.c", 20 "names.c", 21 "libgenl.c", 22 "libnetlink.c", 23 "bpf.c", 24 "exec.c", 25 "fs.c", 26 "json_print.c", 27 "json_writer.c", 28 ], 29 cflags: [ 30 "-DCONFDIR=\"/data/misc/net\"", 31 "-DNETNS_RUN_DIR=\"" + NETNS_RUN_DIR + "\"", 32 "-D_GNU_SOURCE", 33 ], 34 35 // This is a work around for b/18403920 36 ldflags: ["-Wl,--no-gc-sections"], 37} 38 39cc_library_shared { 40 name: "libnetlink", 41 defaults: ["iproute2_defaults"], 42 43 system_shared_libs: ["libc"], 44 srcs: [ 45 "ll_map.c", 46 "libnetlink.c", 47 ], 48} 49