diff 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
line wrap: on
line diff
--- a/dev/binutils/binutils.sh	Mon Mar 11 16:49:41 2019 +0100
+++ b/dev/binutils/binutils.sh	Mon Mar 11 20:36:00 2019 +0100
@@ -32,6 +32,14 @@
 : ${CXXFLAGS:=-O2}
 : ${LDFLAGS:=}
 : ${LIBS:=}
+: ${GDB:=yes}
+: ${NLS:=yes}
+
+if [ "$GDB" = "yes" ]; then
+	with_gdb="--enable-gdb"
+else
+	with_gdb="--disable-gdb"
+fi
 
 if [ "$NLS" = "yes" ]; then
 	PKGDEPENDS="core/gettext $PKGDEPENDS"
@@ -39,11 +47,6 @@
 else
 	with_nls="--disable-nls"
 fi
-if [ "$GDB" = "yes" ]; then
-	with_gdb="--enable-gdb"
-else
-	with_gdb="--disable-gdb"
-fi
 
 build()
 {
@@ -72,8 +75,8 @@
 		--enable-threads \
 		--with-pic \
 		--with-system-zlib \
-		${with_nls} \
-		${with_gdb}
+		$with_nls \
+		$with_gdb
 	make tooldir=/usr
 	make tooldir=/usr install DESTDIR=$DESTDIR