OLD | NEW |
1 # Copyright (c) 2014 The Native Client Authors. All rights reserved. | 1 # Copyright (c) 2014 The Native Client Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
| 5 EnableCliMain |
5 export EXTRA_LIBS="${NACL_CLI_MAIN_LIB}" | 6 export EXTRA_LIBS="${NACL_CLI_MAIN_LIB}" |
6 NACLPORTS_CPPFLAGS+=" -Dpipe=nacl_spawn_pipe" | 7 NACLPORTS_CPPFLAGS+=" -Dpipe=nacl_spawn_pipe" |
7 | 8 |
8 # --with-build-sysroot is necessary to run "fixincl" | 9 # --with-build-sysroot is necessary to run "fixincl" |
9 # properly. Without this option, GCC's build system tries to create | 10 # properly. Without this option, GCC's build system tries to create |
10 # "include-fixed" based on the host's include directory, which is | 11 # "include-fixed" based on the host's include directory, which is |
11 # not compatible with nacl-gcc. | 12 # not compatible with nacl-gcc. |
12 EXTRA_CONFIGURE_ARGS="\ | 13 EXTRA_CONFIGURE_ARGS="\ |
13 --enable-languages=c,c++ --disable-nls \ | 14 --enable-languages=c,c++ --disable-nls \ |
14 --target=x86_64-nacl \ | 15 --target=x86_64-nacl \ |
15 --disable-libstdcxx-pch --enable-threads=nacl" | 16 --disable-libstdcxx-pch --enable-threads=nacl" |
16 | 17 |
17 # Force gcc to think that makeinfo is old so it won't build documentation. | 18 # Force gcc to think that makeinfo is old so it won't build documentation. |
18 # Actually the issue is that its too new on most installs these days | 19 # Actually the issue is that its too new on most installs these days |
19 # (Ubunut/Trusty for example) and causes the build to break. | 20 # (Ubunut/Trusty for example) and causes the build to break. |
20 export gcc_cv_prog_makeinfo_modern=no | 21 export gcc_cv_prog_makeinfo_modern=no |
21 | 22 |
22 ConfigureStep() { | 23 ConfigureStep() { |
23 DefaultConfigureStep | 24 DefaultConfigureStep |
24 for cache_file in $(find . -name config.cache); do | 25 for cache_file in $(find . -name config.cache); do |
25 Remove $cache_file | 26 Remove $cache_file |
26 done | 27 done |
27 } | 28 } |
OLD | NEW |