build (0:a63ceefd6ab0) build (327:d698da6de19b)
1
2# Copyright (C) Igor Sysoev
3# Copyright (C) NGINX, Inc.
4
5
6$echo 'building an "echo" program'
7
8rm -f $NXT_BUILD_DIR/echo
9
10nxt_echo_test="$CC -o $NXT_BUILD_DIR/echo -O $NXT_CC_OPT
11 auto/echo/echo.c $NXT_LD_OPT"
12
1
2# Copyright (C) Igor Sysoev
3# Copyright (C) NGINX, Inc.
4
5
6$echo 'building an "echo" program'
7
8rm -f $NXT_BUILD_DIR/echo
9
10nxt_echo_test="$CC -o $NXT_BUILD_DIR/echo -O $NXT_CC_OPT
11 auto/echo/echo.c $NXT_LD_OPT"
12
13nxt_echo_err=`$nxt_echo_test 2>&1`
13# "|| true" is to bypass "set -e" setting.
14nxt_echo_err=`$nxt_echo_test 2>&1 || true`
14
15if [ ! -x $NXT_BUILD_DIR/echo ]; then
16 $echo
17 $echo $0: error: cannot build an \"echo\" program:
18 $echo
19 $echo $nxt_echo_test
20 $echo
21 $echo $nxt_echo_err
22 $echo
23 exit 1
24fi
25
26echo=$NXT_BUILD_DIR/echo
15
16if [ ! -x $NXT_BUILD_DIR/echo ]; then
17 $echo
18 $echo $0: error: cannot build an \"echo\" program:
19 $echo
20 $echo $nxt_echo_test
21 $echo
22 $echo $nxt_echo_err
23 $echo
24 exit 1
25fi
26
27echo=$NXT_BUILD_DIR/echo