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

Side by Side Diff: ports/binutils/build.sh

Issue 1285953002: Switch devenv to use pkg packages (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@toolchain_install
Patch Set: Created 5 years, 4 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 unified diff | Download patch
OLDNEW
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 export ac_cv_func_getrlimit=no 5 export ac_cv_func_getrlimit=no
6 6
7 export EXTRA_LIBS="${NACL_CLI_MAIN_LIB}" 7 export EXTRA_LIBS="${NACL_CLI_MAIN_LIB}"
8 EXTRA_CONFIGURE_ARGS="\ 8 EXTRA_CONFIGURE_ARGS="\
9 --enable-targets=x86_64-nacl,arm-nacl,avr \ 9 --enable-targets=x86_64-nacl,arm-nacl,avr \
10 --disable-werror \ 10 --disable-werror \
11 --enable-deterministic-archives \ 11 --enable-deterministic-archives \
12 --without-zlib" 12 --without-zlib"
13 13
14 BuildStep() { 14 BuildStep() {
15 export CONFIG_SITE 15 export CONFIG_SITE
16 DefaultBuildStep 16 DefaultBuildStep
17 } 17 }
18 18
19 InstallStep() { 19 InstallStep() {
20 MakeDir ${PUBLISH_DIR} 20 DefaultInstallStep
21 for nexe in binutils/*.nexe gas/*.nexe ld/*.nexe; do 21 # The ldscripts that ship with this verion of binutils doesn't seem to
22 local name=$(basename $nexe .nexe | sed 's/-new//') 22 # work with the glibc toolchain devenv. Instead we copy the linker scripts
23 cp ${nexe} ${PUBLISH_DIR}/${name}_${NACL_ARCH}${NACL_EXEEXT} 23 # out of the SDK root.
24 24 rm -rf ${DESTDIR}${PREFIX}/*-nacl/lib/ldscripts
25 pushd ${PUBLISH_DIR} 25 LogExecute cp -r \
26 LogExecute python ${NACL_SDK_ROOT}/tools/create_nmf.py \ 26 ${NACL_SDK_ROOT}/toolchain/${OS_SUBDIR}_x86_glibc/x86_64-nacl/lib/ldscripts \
27 ${PUBLISH_DIR}/${name}_*${NACL_EXEEXT} \ 27 ${DESTDIR}${PREFIX}/x86_64-nacl/lib/
28 -s . \
29 -o ${name}.nmf
30 popd
31 done
32 } 28 }
OLDNEW
« no previous file with comments | « ports/bdftopcf/build.sh ('k') | ports/bison/build.sh » ('j') | ports/devenv/package » ('J')

Powered by Google App Engine
This is Rietveld 408576698