Add a libipchecksum that contains the C IP checksum code.
This is useful for test code that wants to statically link the IP checksum code. This is not currently possible because libnetutils is vendor_available and making it available for static linking is discouraged. Test: m libnetutils libipchecksum Change-Id: Ic7f1864902581b8a5e3626860565b78c168bdb7f
This commit is contained in:
parent
1e03ef5ac9
commit
3b56a0226b
1 changed files with 15 additions and 0 deletions
|
@ -23,6 +23,21 @@ cc_library_shared {
|
|||
export_include_dirs: ["include"],
|
||||
}
|
||||
|
||||
cc_library_static {
|
||||
name: "libipchecksum",
|
||||
|
||||
srcs: [
|
||||
"checksum.c",
|
||||
],
|
||||
|
||||
cflags: [
|
||||
"-Wall",
|
||||
"-Werror",
|
||||
],
|
||||
|
||||
export_include_dirs: ["include"],
|
||||
}
|
||||
|
||||
cc_binary {
|
||||
name: "dhcpdbg",
|
||||
|
||||
|
|
Loading…
Reference in a new issue