blob: 597058b3f1f50c5b3f006a56449f8c76966c82f6 [file] [log] [blame]
Jeff Vander Stoepdfb78412017-05-08 23:05:06 -07001common_CFLAGS = [
2 "-Wall",
3 "-Werror",
4 "-Wshadow",
5]
6
7cc_binary {
8 name: "secilc",
9 host_supported: true,
10 cflags: common_CFLAGS,
11 srcs: ["secilc.c"],
Tri Vob6714422018-04-12 17:46:07 -070012 static_libs: ["libsepol"],
13 stl: "none",
Jiyong Parkaf852b92019-01-17 01:45:54 +090014 // secilc is a program that is executed very early by init.
15 // Since it is before the mount namespaces are setup, /system/bin/linker
16 // and /system/lib/libc.so point to the mount points where nothing
17 // is mounted on yet. Therefore, secilc has to have explicit knowledge about
18 // the paths where the bootstrap Bionic is. bootstrap:true sets DT_INTERP to
Peter Collingbournee690b032019-05-16 19:38:31 -070019 // /system/bin/bootstrap/linker.
Jiyong Parkaf852b92019-01-17 01:45:54 +090020 bootstrap: true,
Jeff Vander Stoepdfb78412017-05-08 23:05:06 -070021}