aboutsummaryrefslogtreecommitdiff
path: root/misc/Android.bp
blob: 0537618946195e38138934da12f407b2f0b3dd6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package {
    // See: http://go/android-license-faq
    // A large-scale-change added 'default_applicable_licenses' to import
    // all of the 'license_kinds' from "external_iproute2_license"
    // to get the below license kinds:
    //   SPDX-license-identifier-GPL
    //   SPDX-license-identifier-GPL-2.0
    default_applicable_licenses: ["external_iproute2_license"],
}

cc_binary {
    name: "ss",
    defaults: ["iproute2_defaults"],

    srcs: [
        "ss.c",
        "ssfilter.y",
    ],

    shared_libs: [
        "libiprouteutil",
        "libnetlink",
        "libselinux",
    ],

    cflags: [
        "-Wno-missing-field-initializers",
        "-Wno-tautological-pointer-compare",
        "-Dsethostent(x)=",
    ],

    ldflags: ["-Wl,-export-dynamic"],
}