uti: Don't compile syscall_intercept related stuff when not specified with configure option

Change-Id: I9be8cb9b3fcae78d33a33b057c43caee23a81fc1
This commit is contained in:
Masamichi Takagi
2018-09-05 13:14:36 +09:00
parent 22c6c5c736
commit b51886421e
6 changed files with 136 additions and 2 deletions

View File

@@ -2178,6 +2178,13 @@ int main(int argc, char **argv)
if (opendev() == -1)
exit(EXIT_FAILURE);
#ifndef WITH_SYSCALL_INTERCEPT
if (enable_uti) {
__eprintf("ERROR: uti is not available when not configured with --with-syscall_intercept=<path>\n");
exit(EXIT_FAILURE);
}
#endif
ld_preload_init();
#ifdef ADD_ENVS_OPTION