Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Unified Diff: pnacl/build.sh

Issue 25499003: PNaCl: Allow translator to produce an unsandboxed, native executable (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Fix -I path Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pnacl/build.sh
diff --git a/pnacl/build.sh b/pnacl/build.sh
index ce2d4b71905fe7b72e75e49abdcdacc1bd63a1c3..42b4a75695190d43ef7d3a8db10c043df5cf71af 100755
--- a/pnacl/build.sh
+++ b/pnacl/build.sh
@@ -2430,6 +2430,8 @@ libs-support() {
for arch in arm x86-32 x86-64 mips32; do
libs-support-native ${arch}
done
+
+ libs-support-unsandboxed
}
libs-support-newlib-crt1() {
@@ -2527,6 +2529,17 @@ libs-support-native() {
${PNACL_AR} rc "${destdir}"/libcrt_platform.a "${tmpdir}"/*.o
}
+libs-support-unsandboxed() {
+ if ${BUILD_PLATFORM_LINUX}; then
+ local arch=linux-x86-32
+ StepBanner "LIBS-SUPPORT (${arch})" "Install unsandboxed_irt.o"
+ local destdir="${INSTALL_LIB_NATIVE}"${arch}
+ mkdir -p ${destdir}
+ gcc -m32 -O2 -Wall -Werror -I${NACL_ROOT}/.. -DNACL_LINUX=1 -c \
+ ${PNACL_SUPPORT}/unsandboxed_irt.c -o ${destdir}/unsandboxed_irt.o
+ fi
+}
+
# Build the dummy "libpnacl_irt_shim.a", which is useful for building
# commandline programs. It cannot be used to build PPAPI programs

Powered by Google App Engine
This is Rietveld 408576698