Mercurial > vanilla
comparison core/attr/attr.sh @ 147:605b4a7b264a
vanilla: general cleanup
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 11 Mar 2019 20:36:00 +0100 |
parents | e737b80da269 |
children | 9e95fda0e5c6 |
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 --sysconfdir=/etc \ | 55 --sysconfdir=/etc \ |
56 --disable-static \ | 56 --disable-static \ |
57 --enable-shared \ | 57 --enable-shared \ |
58 ${with_nls} | 58 $with_nls |
59 make | 59 make |
60 make install DESTDIR=$DESTDIR | 60 make install DESTDIR=$DESTDIR |
61 rm -f $DESTDIR/usr/lib/libattr.la | 61 rm -f $DESTDIR/usr/lib/libattr.la |
62 | 62 |
63 popd | 63 popd |