Jeff Vander Stoep | dfb7841 | 2017-05-08 23:05:06 -0700 | [diff] [blame] | 1 | common_CFLAGS = [ |
| 2 | "-Wall", |
| 3 | "-Werror", |
| 4 | "-Wshadow", |
| 5 | ] |
| 6 | |
| 7 | cc_binary { |
| 8 | name: "secilc", |
| 9 | host_supported: true, |
| 10 | cflags: common_CFLAGS, |
| 11 | srcs: ["secilc.c"], |
Tri Vo | b671442 | 2018-04-12 17:46:07 -0700 | [diff] [blame] | 12 | static_libs: ["libsepol"], |
| 13 | stl: "none", |
Jiyong Park | af852b9 | 2019-01-17 01:45:54 +0900 | [diff] [blame] | 14 | // 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 Collingbourne | e690b03 | 2019-05-16 19:38:31 -0700 | [diff] [blame] | 19 | // /system/bin/bootstrap/linker. |
Jiyong Park | af852b9 | 2019-01-17 01:45:54 +0900 | [diff] [blame] | 20 | bootstrap: true, |
Jeff Vander Stoep | dfb7841 | 2017-05-08 23:05:06 -0700 | [diff] [blame] | 21 | } |