Index: src/untrusted/init/nacl.scons |
diff --git a/src/untrusted/init/nacl.scons b/src/untrusted/init/nacl.scons |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b5cf4a1d64bb41e1d9674c385c23dc3c52c40c8f |
--- /dev/null |
+++ b/src/untrusted/init/nacl.scons |
@@ -0,0 +1,27 @@ |
+# -*- python -*- |
+# Copyright (c) 2013 The Native Client Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+Import('env') |
+ |
+# Only for newlib for now, since the subprogram's library dependencies |
+# and ld.so-as-main would complicate the reverse channel emulation |
+# quite a bit. Once we have a better handle on how to merge manifests |
+# and we need to test dynamic loading by the subprocess, we can |
+# revisit this. |
+if env.Bit('nacl_glibc'): |
+ Return() |
+ |
+env.ComponentLibrary('process_lib', |
+ [ 'process_lib.cc', ]) |
+ |
+init_nexe = env.ComponentProgram('init', |
+ 'init.cc', |
+ EXTRA_LIBS=['process_lib', |
+ 'srpc', |
+ 'platform', |
+ 'imc', |
+ 'imc_syscalls', |
+ '${PTHREAD_LIBS}', |
+ '${NONIRT_LIBS}']) |