aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2017-09-15 14:33:58 +0930
committerAlan Modra <amodra@gmail.com>2017-09-15 14:48:14 +0930
commit817b77113459d8b66a75f4fdbba0a3f5f6936c9b (patch)
treec443af6b8a3c64bdf90ee44aa1af36fbd35cc4dd
parent21d0a60620b306d6471ddedff04ac23912596cc6 (diff)
downloadgdb-817b77113459d8b66a75f4fdbba0a3f5f6936c9b.zip
gdb-817b77113459d8b66a75f4fdbba0a3f5f6936c9b.tar.gz
gdb-817b77113459d8b66a75f4fdbba0a3f5f6936c9b.tar.bz2
Enable/disable various dirs in src-release.sh
gold needs to be enabled for a binutils release, but it's rather odd to do so for gas, gdb or sim. This patch passes various --enable and --disable options depending on the directories being released. * src-release.sh (do_proto_toplev): Revert last patch. Enable or disable binutils, gas, gdb, gold, gprof, ld, libdecnumber, readline, and sim depending on $tool and $support_files. Echo configure line.
-rw-r--r--ChangeLog6
-rwxr-xr-xsrc-release.sh14
2 files changed, 18 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index e34f36e..3bd90b6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2017-09-15 Alan Modra <amodra@gmail.com>
+
+ * src-release.sh (do_proto_toplev): Revert last patch. Enable or
+ disable binutils, gas, gdb, gold, gprof, ld, libdecnumber, readline,
+ and sim depending on $tool and $support_files. Echo configure line.
+
2017-09-14 Matt Rice <ratmice@gmail.com>
* src-release.sh (do_proto_toplev): Enable gold during release process.
diff --git a/src-release.sh b/src-release.sh
index 80c1c33..5f15de3 100755
--- a/src-release.sh
+++ b/src-release.sh
@@ -82,8 +82,18 @@ do_proto_toplev()
-e '/^ install-texinfo /d' \
<Makefile.in >tmp
mv -f tmp Makefile.in
- #
- ./configure --target=i386-pc-linux-gnu --enable-gold --enable-ld
+ # configure. --enable-gold is needed to ensure .c/.h from .y are
+ # built in the gold dir. The disables speed the build a little.
+ enables=
+ disables=
+ for dir in binutils gas gdb gold gprof ld libdecnumber readline sim; do
+ case " $tool $support_files " in
+ *" $dir "*) enables="$enables --enable-$dir" ;;
+ *) disables="$disables --disable-$dir" ;;
+ esac
+ done
+ echo "==> configure --target=i386-pc-linux-gnu $disables $enables"
+ ./configure --target=i386-pc-linux-gnu $disables $enables
$MAKE configure-host configure-target \
ALL_GCC="" ALL_GCC_C="" ALL_GCC_CXX="" \
CC_FOR_TARGET="$CC" CXX_FOR_TARGET="$CXX"