aboutsummaryrefslogtreecommitdiff
path: root/projects
diff options
context:
space:
mode:
Diffstat (limited to 'projects')
-rwxr-xr-xprojects/sample/autoconf/config.sub8
-rwxr-xr-xprojects/sample/configure5
2 files changed, 13 insertions, 0 deletions
diff --git a/projects/sample/autoconf/config.sub b/projects/sample/autoconf/config.sub
index 9942491533..8f5793aef3 100755
--- a/projects/sample/autoconf/config.sub
+++ b/projects/sample/autoconf/config.sub
@@ -132,6 +132,10 @@ case $maybe_os in
os=-$maybe_os
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
;;
+ nacl)
+ os=-nacl
+ basic_machine=pnacl-unknown
+ ;;
*)
basic_machine=`echo $1 | sed 's/-[^-]*$//'`
if [ $basic_machine != $1 ]
@@ -347,6 +351,8 @@ case $basic_machine in
i*86 | x86_64)
basic_machine=$basic_machine-pc
;;
+ pnacl-*)
+ ;;
# Object if more than one company name word.
*-*-*)
echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
@@ -1364,6 +1370,8 @@ case $os in
;;
esac
;;
+ -nacl)
+ ;;
-nto-qnx*)
;;
-nto*)
diff --git a/projects/sample/configure b/projects/sample/configure
index d92588815a..cb1bb0b2bb 100755
--- a/projects/sample/configure
+++ b/projects/sample/configure
@@ -3686,6 +3686,11 @@ else
llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
llvm_cv_os_type="GNU"
llvm_cv_platform_type="Unix" ;;
+ *-*-nacl*)
+ llvm_cv_link_all_option="-Wl,--whole-archive"
+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
+ llvm_cv_os_type="NativeClient"
+ llvm_cv_platform_type="Unix" ;;
*-*-solaris*)
llvm_cv_link_all_option="-Wl,-z,allextract"
llvm_cv_no_link_all_option="-Wl,-z,defaultextract"