| OLD | NEW |
| 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 #} |
| OLD | NEW |