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

Side by Side Diff: ports/gawk/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
OLDNEW
1 # Copyright (c) 2015 The Native Client Authors. All rights reserved. 1 # Copyright (c) 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 # getopt.c and getopt1.c have been commented for build 5 # getopt.c and getopt1.c have been commented for build
6 NACLPORTS_CFLAGS+=" -Dmain=nacl_main"
7 if [ ${TOOLCHAIN} != "glibc" ]; then 6 if [ ${TOOLCHAIN} != "glibc" ]; then
8 NACLPORTS_CFLAGS+=" -D__GNU_LIBRARY__ " 7 NACLPORTS_CFLAGS+=" -D__GNU_LIBRARY__ "
9 fi 8 fi
10 9
11 NACLPORTS_LDFLAGS+=" ${NACL_CLI_MAIN_LIB}" 10 NACLPORTS_LDFLAGS+=" ${NACL_CLI_MAIN_LIB}"
12 11
12 EnableCliMain
13
13 #BuildStep() { 14 #BuildStep() {
14 # SetupCrossEnvironment 15 # SetupCrossEnvironment
15 # including readline because it is not linked by itself 16 # including readline because it is not linked by itself
16 # ncurses also has to be linked otherwise multiple 17 # ncurses also has to be linked otherwise multiple
17 # undefined errors appear in linking readline 18 # undefined errors appear in linking readline
18 #LogExecute make -j${OS_JOBS} \ 19 #LogExecute make -j${OS_JOBS} \
19 #LIBREADLINE="-lreadline -lncurses" gawk${NACL_EXEEXT} 20 #LIBREADLINE="-lreadline -lncurses" gawk${NACL_EXEEXT}
20 #} 21 #}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698