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

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

Issue 1417223003: Switch from using 'nacl_main' to 'main' entry point (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « ports/bdftopcf/build.sh ('k') | ports/binutils/build.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Native Client Authors. All rights reserved. 1 # Copyright 2015 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 HOST_BUILD_DIR=${WORK_DIR}/build_host 5 HOST_BUILD_DIR=${WORK_DIR}/build_host
6 HOST_INSTALL_DIR=${WORK_DIR}/install_host 6 HOST_INSTALL_DIR=${WORK_DIR}/install_host
7 7
8 export ac_cv_func_getrlimit=no 8 export ac_cv_func_getrlimit=no
9 export EXTRA_AM_CPPFLAGS="-Dmain=nacl_main" 9
10 export EXTRA_LIBS="${NACL_CLI_MAIN_LIB} -lppapi_simple \ 10 EnableCliMain
11 -lnacl_io -lppapi -l${NACL_CXX_LIB}"
12 11
13 BuildHostBinutils() { 12 BuildHostBinutils() {
14 MakeDir ${HOST_BUILD_DIR} 13 MakeDir ${HOST_BUILD_DIR}
15 ChangeDir ${HOST_BUILD_DIR} 14 ChangeDir ${HOST_BUILD_DIR}
16 CC="gcc" EXTRA_LIBS="" EXTRA_AM_CPPFLAGS="" \ 15 LogExecute ${SRC_DIR}/configure --prefix=${HOST_INSTALL_DIR} \
17 LogExecute ${SRC_DIR}/configure --prefix=${HOST_INSTALL_DIR} \
18 --target=avr \ 16 --target=avr \
19 --disable-nls 17 --disable-nls
20 EXTRA_LIBS="" EXTRA_AM_CPPFLAGS="" LogExecute make 18 LogExecute make
21 EXTRA_LIBS="" EXTRA_AM_CPPFLAGS="" LogExecute make install 19 LogExecute make install
22 } 20 }
23 21
24 ConfigureStep() { 22 ConfigureStep() {
25 ChangeDir ${SRC_DIR}
26 BuildHostBinutils 23 BuildHostBinutils
24
27 export PATH="${HOST_INSTALL_DIR}/bin:${PATH}" 25 export PATH="${HOST_INSTALL_DIR}/bin:${PATH}"
28 ChangeDir ${BUILD_DIR} 26 ChangeDir ${BUILD_DIR}
29 EXTRA_CONFIGURE_ARGS="\ 27 EXTRA_CONFIGURE_ARGS="\
30 --target=avr \ 28 --target=avr \
31 --disable-nls \ 29 --disable-nls \
32 --disable-werror \ 30 --disable-werror \
33 --enable-deterministic-archives \ 31 --enable-deterministic-archives \
34 --without-zlib" 32 --without-zlib"
35 33
36 DefaultConfigureStep 34 DefaultConfigureStep
37 } 35 }
OLDNEW
« no previous file with comments | « ports/bdftopcf/build.sh ('k') | ports/binutils/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698