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

Unified Diff: pnacl/build.sh

Issue 269703002: Non-SFI Mode: Add nonsfi_loader and plumbing to test it (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Review Created 6 years, 8 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 adb852b77bf0c680083ff56bbf4dd0dae8b4ef67..4c8fae3add5f46354bad6e8b2595eae987336be5 100755
--- a/pnacl/build.sh
+++ b/pnacl/build.sh
@@ -2468,11 +2468,13 @@ libs-support-unsandboxed() {
local destdir="${INSTALL_LIB_NATIVE}"${arch}
mkdir -p ${destdir}
# The NaCl headers insist on having a platform macro such as
- # NACL_LINUX defined, but unsandboxed_irt.c does not itself use
- # any of these macros, so defining NACL_LINUX here even on
- # non-Linux systems is OK.
- gcc -m32 -O2 -Wall -Werror -I${NACL_ROOT}/.. -DNACL_LINUX=1 -c \
- ${PNACL_SUPPORT}/unsandboxed_irt.c -o ${destdir}/unsandboxed_irt.o
+ # NACL_LINUX defined, but nonsfi/irt/irt_interfaces.c does not
+ # itself use any of these macros, so defining NACL_LINUX here even
+ # on non-Linux systems is OK.
+ gcc -m32 -O2 -Wall -Werror -I${NACL_ROOT}/.. -c \
+ -DNACL_LINUX=1 -DDEFINE_MAIN \
+ ${NACL_ROOT}/src/nonsfi/irt/irt_interfaces.c \
+ -o ${destdir}/unsandboxed_irt.o
fi
}

Powered by Google App Engine
This is Rietveld 408576698