Use bash variable add operator
authorHugo Villeneuve <hugo@hugovil.com>
Wed, 24 Sep 2014 02:12:12 +0000 (22:12 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Thu, 27 Nov 2014 23:33:55 +0000 (18:33 -0500)
20 files changed:
stage0/pkg/binutils
stage0/pkg/gcc
stage0/pkg/ncurses
stage1/pkg/binutils
stage1/pkg/gcc
stage2/pkg/binutils
stage2/pkg/coreutils
stage2/pkg/dhcp
stage2/pkg/e2fsprogs
stage2/pkg/eglibc
stage2/pkg/findutils
stage2/pkg/gcc
stage2/pkg/groff
stage2/pkg/gzip
stage2/pkg/inetutils
stage2/pkg/kbd
stage2/pkg/ncurses
stage2/pkg/readline
stage2/pkg/shadow
stage2/pkg/zlib

index 443714d..5c80364 100644 (file)
@@ -5,8 +5,7 @@ hvconfig_pre()
     export AR=ar
     export AS=as
 
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
+    CONFIGURE_OPTS+=" \
         --host=${CLFS_HOST} \
         --target=${CLFS_TARGET} \
         --with-sysroot=${CLFS} \
@@ -16,10 +15,9 @@ hvconfig_pre()
         --disable-multilib"
 
     case "${HVL_TARGET}" in
-        "x86_64")
-            # This adds 64 bit support to Binutils.
-           CONFIGURE_OPTS="${CONFIGURE_OPTS} --enable-64-bit-bfd"
-           ;;
+        x86_64*)
+            CONFIGURE_OPTS+=" --enable-64-bit-bfd"
+            ;;
     esac
 }
 
index d0d37e4..1877e7c 100644 (file)
@@ -6,8 +6,7 @@ hvconfig_pre()
     export LDFLAGS="-Wl,-rpath,/cross-tools/lib"
 
     # Common options for passes 1 & 2
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
+    CONFIGURE_OPTS+=" \
         --build=${CLFS_HOST} \
         --host=${CLFS_HOST} \
         --target=${CLFS_TARGET} \
@@ -22,7 +21,7 @@ hvconfig_pre()
         --disable-multilib"
 
     if [ "x${HVLABEL}" = "x${GCC}-pass1" ]; then
-        CONFIGURE_OPTS="${CONFIGURE_OPTS} \
+        CONFIGURE_OPTS+=" \
             --disable-shared \
             --without-headers \
             --with-newlib \
@@ -33,7 +32,7 @@ hvconfig_pre()
             --disable-threads \
             --enable-languages=c"
     else
-        CONFIGURE_OPTS="${CONFIGURE_OPTS} \
+        CONFIGURE_OPTS+=" \
             --enable-shared \
             --enable-languages=c,c++ \
             --enable-__cxa_atexit \
index 7d4a680..b2126bc 100644 (file)
@@ -2,8 +2,7 @@
 
 hvconfig_pre()
 {
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
+    CONFIGURE_OPTS+=" \
         --without-debug \
         --without-shared"
 }
index 9ea2aad..83113c3 100644 (file)
@@ -2,8 +2,7 @@
 
 hvconfig_pre()
 {
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
+    CONFIGURE_OPTS+=" \
         --target=${CLFS_TARGET} \
         --with-lib-path=/tools/lib \
         --disable-nls \
@@ -13,7 +12,7 @@ hvconfig_pre()
     case "${HVL_TARGET}" in
         "x86_64")
             # This adds 64 bit support to Binutils.
-           CONFIGURE_OPTS="${CONFIGURE_OPTS} --enable-64-bit-bfd"
+           CONFIGURE_OPTS+=" --enable-64-bit-bfd"
            ;;
     esac
 }
index ebca3fe..57af140 100644 (file)
@@ -2,8 +2,7 @@
 
 hvconfig_pre()
 {
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
+    CONFIGURE_OPTS+=" \
         --target=${CLFS_TARGET} \
         --disable-multilib \
         --with-local-prefix=/tools \
index c9522c1..e8d8c09 100644 (file)
@@ -5,8 +5,7 @@ hvconfig_pre()
     export CC="gcc -isystem /usr/include"
     export LDFLAGS="-Wl,-rpath-link,/lib"
 
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
+    CONFIGURE_OPTS+=" \
         --libdir=/usr/lib \
         --enable-shared \
         --disable-multilib"
@@ -21,7 +20,7 @@ hvconfig_pre()
                 ${LFS_TMP}/${PACKAGE}/libiberty/Makefile.in
 
             # This adds 64 bit support to Binutils.
-           CONFIGURE_OPTS="${CONFIGURE_OPTS} --enable-64-bit-bfd"
+           CONFIGURE_OPTS+=" --enable-64-bit-bfd"
            ;;
     esac
 }
index 53b8f5c..8992716 100644 (file)
@@ -2,8 +2,7 @@
 
 hvconfig_pre()
 {
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
+    CONFIGURE_OPTS+=" \
         --libexecdir=/usr/lib \
         --enable-no-install-program=kill,uptime"
 }
index beb7ee6..c4be30c 100644 (file)
@@ -5,8 +5,7 @@ hvconfig_pre()
     cd ${LFS_TMP}/${PACKAGE}
     sed -i 's%\(^sbindir =\).*%\1 @prefix@@sbindir@%' server/Makefile.in
 
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
+    CONFIGURE_OPTS+=" \
         --localstatedir=/var \
         --sbindir=/sbin \
         --with-srv-lease-file=/var/state/dhcp/dhcpd.leases \
index 1098c95..ed00a35 100644 (file)
@@ -4,8 +4,7 @@ hvconfig_pre()
 {
     export PKG_CONFIG=true
 
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
+    CONFIGURE_OPTS+=" \
         --with-root-prefix=\"\" \
         --enable-elf-shlibs \
         --disable-libblkid \
index d85577e..0d07767 100644 (file)
@@ -2,8 +2,7 @@
 
 hvconfig_pre()
 {
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
+    CONFIGURE_OPTS+=" \
         --disable-profile \
         --enable-add-ons \
         --enable-kernel=$(get_pkg_ver ${KERNEL}) \
@@ -33,7 +32,7 @@ hvconfig_pre()
         "x86_64")
             # Tell EGLIBC to install its libraries into /lib:
             echo "slibdir=/lib" >> configparms
-            CONFIGURE_OPTS="${CONFIGURE_OPTS} --libdir=/usr/lib"
+            CONFIGURE_OPTS+=" --libdir=/usr/lib"
            ;;
     esac
 }
index fcb4b36..715d4d4 100644 (file)
@@ -2,8 +2,7 @@
 
 hvconfig_pre()
 {
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
+    CONFIGURE_OPTS+=" \
         --libexecdir=/usr/lib/findutils \
         --localstatedir=/var/lib/locate"
 }
index c1c28c3..edcfe46 100644 (file)
@@ -5,8 +5,7 @@ hvconfig_pre()
     export CC="gcc -Wl,-rpath-link,/lib -isystem /usr/include"
     export CXX="g++ -Wl,-rpath-link,/lib -isystem /usr/include"
 
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
+    CONFIGURE_OPTS+=" \
         --libexecdir=/usr/lib \
         --enable-shared \
         --enable-threads=posix \
index 2f052fb..4ab82dd 100644 (file)
@@ -6,9 +6,7 @@ hvconfig_pre()
 {
     export PAGE=letter
 
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
-        --enable-multibyte"
+    CONFIGURE_OPTS+=" --enable-multibyte"
 }
 
 hvconfig_post()
index 341a13f..3043737 100644 (file)
@@ -2,9 +2,7 @@
 
 hvconfig_pre()
 {
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
-        --bindir=/bin"
+    CONFIGURE_OPTS+=" --bindir=/bin"
 }
 
 hvbuild_post()
index 82d277f..0fc02e9 100644 (file)
@@ -2,8 +2,7 @@
 
 hvconfig_pre()
 {
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
+    CONFIGURE_OPTS+=" \
         --libexecdir=/usr/sbin \
         --localstatedir=/var \
         --disable-ifconfig \
index 9e4dc22..2df1e1e 100644 (file)
@@ -2,9 +2,7 @@
 
 hvconfig_pre()
 {
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
-        --datadir=/lib/kbd"
+    CONFIGURE_OPTS+=" --datadir=/lib/kbd"
 }
 
 hvbuild_post()
index fe8355d..5efb791 100644 (file)
@@ -2,8 +2,7 @@
 
 hvconfig_pre()
 {
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
+    CONFIGURE_OPTS+=" \
         --libdir=/lib \
         --with-shared \
         --without-debug \
index f3bd317..452be2f 100644 (file)
@@ -2,10 +2,8 @@
 
 hvconfig_pre()
 {
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
-        --libdir=/lib"
-    
+    CONFIGURE_OPTS+=" --libdir=/lib"
+
     cd ${LFS_TMP}/${PACKAGE}
 
     # Reinstalling Readline will cause the old libraries to be moved to
index d8181d8..a8314a9 100644 (file)
@@ -2,9 +2,7 @@
 
 hvconfig_pre()
 {
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
-        --without-selinux"
+    CONFIGURE_OPTS+=" --without-selinux"
 
     cd ${LFS_TMP}/${PACKAGE}
 
index 1b4a57b..8c40047 100644 (file)
@@ -6,9 +6,7 @@ hvconfig_pre()
     export CXX="g++ -isystem /usr/include"
     export LDFLAGS="-Wl,-rpath-link,/lib"
 
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
-        --shared"
+    CONFIGURE_OPTS+=" --shared"
 }
 
 hvconfig_post()