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

Unified 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, 2 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
« no previous file with comments | « ports/bdftopcf/build.sh ('k') | ports/binutils/build.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ports/binutils-2.25/build.sh
diff --git a/ports/binutils-2.25/build.sh b/ports/binutils-2.25/build.sh
index f3daed0f24eb1eeef42d0c2fb2230216ec20e343..1a88f35b3c537f8a5b7cdbd0b69fa672ca5b0635 100644
--- a/ports/binutils-2.25/build.sh
+++ b/ports/binutils-2.25/build.sh
@@ -6,24 +6,22 @@ HOST_BUILD_DIR=${WORK_DIR}/build_host
HOST_INSTALL_DIR=${WORK_DIR}/install_host
export ac_cv_func_getrlimit=no
-export EXTRA_AM_CPPFLAGS="-Dmain=nacl_main"
-export EXTRA_LIBS="${NACL_CLI_MAIN_LIB} -lppapi_simple \
- -lnacl_io -lppapi -l${NACL_CXX_LIB}"
+
+EnableCliMain
BuildHostBinutils() {
MakeDir ${HOST_BUILD_DIR}
ChangeDir ${HOST_BUILD_DIR}
- CC="gcc" EXTRA_LIBS="" EXTRA_AM_CPPFLAGS="" \
- LogExecute ${SRC_DIR}/configure --prefix=${HOST_INSTALL_DIR} \
+ LogExecute ${SRC_DIR}/configure --prefix=${HOST_INSTALL_DIR} \
--target=avr \
--disable-nls
- EXTRA_LIBS="" EXTRA_AM_CPPFLAGS="" LogExecute make
- EXTRA_LIBS="" EXTRA_AM_CPPFLAGS="" LogExecute make install
+ LogExecute make
+ LogExecute make install
}
ConfigureStep() {
- ChangeDir ${SRC_DIR}
BuildHostBinutils
+
export PATH="${HOST_INSTALL_DIR}/bin:${PATH}"
ChangeDir ${BUILD_DIR}
EXTRA_CONFIGURE_ARGS="\
« 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