comparison dev/binutils/binutils.sh @ 147:605b4a7b264a

vanilla: general cleanup
author David Demelier <markand@malikania.fr>
date Mon, 11 Mar 2019 20:36:00 +0100
parents b3f3b8ed8cf2
children ebca5f1df2e4
comparison
equal deleted inserted replaced
146:5bda5dfeb875 147:605b4a7b264a
30 : ${CFLAGS:=-O2} 30 : ${CFLAGS:=-O2}
31 : ${CXX:=g++} 31 : ${CXX:=g++}
32 : ${CXXFLAGS:=-O2} 32 : ${CXXFLAGS:=-O2}
33 : ${LDFLAGS:=} 33 : ${LDFLAGS:=}
34 : ${LIBS:=} 34 : ${LIBS:=}
35 : ${GDB:=yes}
36 : ${NLS:=yes}
37
38 if [ "$GDB" = "yes" ]; then
39 with_gdb="--enable-gdb"
40 else
41 with_gdb="--disable-gdb"
42 fi
35 43
36 if [ "$NLS" = "yes" ]; then 44 if [ "$NLS" = "yes" ]; then
37 PKGDEPENDS="core/gettext $PKGDEPENDS" 45 PKGDEPENDS="core/gettext $PKGDEPENDS"
38 with_nls="--enable-nls" 46 with_nls="--enable-nls"
39 else 47 else
40 with_nls="--disable-nls" 48 with_nls="--disable-nls"
41 fi
42 if [ "$GDB" = "yes" ]; then
43 with_gdb="--enable-gdb"
44 else
45 with_gdb="--disable-gdb"
46 fi 49 fi
47 50
48 build() 51 build()
49 { 52 {
50 rm -rf $PKGNAME-$PKGVERSION 53 rm -rf $PKGNAME-$PKGVERSION
70 --enable-relro \ 73 --enable-relro \
71 --enable-shared \ 74 --enable-shared \
72 --enable-threads \ 75 --enable-threads \
73 --with-pic \ 76 --with-pic \
74 --with-system-zlib \ 77 --with-system-zlib \
75 ${with_nls} \ 78 $with_nls \
76 ${with_gdb} 79 $with_gdb
77 make tooldir=/usr 80 make tooldir=/usr
78 make tooldir=/usr install DESTDIR=$DESTDIR 81 make tooldir=/usr install DESTDIR=$DESTDIR
79 82
80 popd 83 popd
81 rm -rf $PKGNAME-$PKGVERSION 84 rm -rf $PKGNAME-$PKGVERSION