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

Unified Diff: ports/perl/build.sh

Issue 1804293003: Add support for new pnacl native toolchain driver (Closed) Base URL: https://chromium.googlesource.com/webports.git@master
Patch Set: Fix according to Brad's comments Created 4 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: ports/perl/build.sh
diff --git a/ports/perl/build.sh b/ports/perl/build.sh
index 01f02bc6f5a7350b6d58b5b09444ec58183280a8..a203869234b9294f1f918874aae5301c45df0205 100644
--- a/ports/perl/build.sh
+++ b/ports/perl/build.sh
@@ -9,7 +9,7 @@ export BUILD_LD=cc
# with pnacl, arm's clang-newlib (microperl)
NACLPORTS_CFLAGS_MICRO=$NACLPORTS_CFLAGS
NACLPORTS_CFLAGS_MICRO+=" -Wno-return-type "
-NACLPORTS_CFLAGS+=" -I${NACL_SDK_ROOT}/include -I${NACLPORTS_INCLUDE} \
+NACLPORTS_CFLAGS+=" -I${NACL_SDK_ROOT}/include -isystem${NACLPORTS_INCLUDE} \
-Wno-return-type"
BUILD_DIR=${SRC_DIR}
# keeping microperl for now
@@ -22,7 +22,8 @@ ARCH_DIR=${PUBLISH_DIR}/${NACL_ARCH}
# specifically for systems which do not support it
# Also, FILE pointer is structured a bit differently
# Relevant stdio parameters found via sel_ldr on Linux
-if [ "${NACL_LIBC}" = "newlib" -o "${NACL_ARCH}" = "pnacl" ] ; then
+if [ "${NACL_LIBC}" = "newlib" -o "${NACL_ARCH}" = "pnacl" \
+ -o "${NACL_ARCH}" = "le32" ] ; then
NACLPORTS_LIBS+=" -lm -ltar"
DYNAMIC_EXT=""
NACL_GLIBC_DEF="undef"
@@ -54,7 +55,7 @@ else
fi
# include Errno in pnacl
NONXS_EXT=""
-if [ "${NACL_ARCH}" = "pnacl" ] ; then
+if [ "${NACL_ARCH}" = "pnacl" -o "${NACL_ARCH}" = "le32" ] ; then
NONXS_EXT="Errno"
fi
@@ -165,7 +166,7 @@ TestStep() {
export TOOLCHAIN
# skip for pnacl
- if [ "${NACL_ARCH}" = "pnacl" ] ; then
+ if [ "${NACL_ARCH}" = "pnacl" -o "${NACL_ARCH}" = "le32" ] ; then
return
fi
« make_all.sh ('K') | « ports/openjpeg/build.sh ('k') | ports/pkg/nacl.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698