comparison core/bash/bash.sh @ 147:605b4a7b264a

vanilla: general cleanup
author David Demelier <markand@malikania.fr>
date Mon, 11 Mar 2019 20:36:00 +0100
parents e737b80da269
children ceeee066b3b7
comparison
equal deleted inserted replaced
146:5bda5dfeb875 147:605b4a7b264a
25 25
26 : ${CHOST:=$(uname -m)-linux-musl} 26 : ${CHOST:=$(uname -m)-linux-musl}
27 : ${CBUILD:=$(uname -m)-linux-musl} 27 : ${CBUILD:=$(uname -m)-linux-musl}
28 : ${CC:=gcc} 28 : ${CC:=gcc}
29 : ${CFLAGS:=-O2} 29 : ${CFLAGS:=-O2}
30 : ${NLS:=yes}
31 : ${LDFLAGS:=} 30 : ${LDFLAGS:=}
32 : ${LIBS:=} 31 : ${LIBS:=}
32 : ${NLS:=yes}
33 33
34 if [ "$NLS" = "yes" ]; then 34 if [ "$NLS" = "yes" ]; then
35 PKGDEPENDS="core/gettext $PKGDEPENDS" 35 PKGDEPENDS="core/gettext $PKGDEPENDS"
36 with_nls="--enable-nls" 36 with_nls="--enable-nls"
37 else 37 else
47 CC="$CC" \ 47 CC="$CC" \
48 CFLAGS="$CFLAGS" \ 48 CFLAGS="$CFLAGS" \
49 LDFLAGS="$LDFLAGS" \ 49 LDFLAGS="$LDFLAGS" \
50 LIBS="$LIBS" \ 50 LIBS="$LIBS" \
51 ./configure \ 51 ./configure \
52 --build=${CBUILD} \ 52 --build=$CBUILD \
53 --host=${CHOST} \ 53 --host=$CHOST \
54 --prefix=/usr \ 54 --prefix=/usr \
55 --without-bash-malloc \ 55 --without-bash-malloc \
56 ${with_nls} 56 $with_nls
57 make 57 make
58 make install DESTDIR=$DESTDIR 58 make install DESTDIR=$DESTDIR
59 59
60 popd 60 popd
61 rm -rf $PKGNAME-$PKGVERSION 61 rm -rf $PKGNAME-$PKGVERSION