diff options
author | Alexey Neyman <stilor@att.net> | 2019-03-09 18:01:30 -0800 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2019-03-09 18:01:30 -0800 |
commit | 1e25ebc7e04b610bf8324d6e428b320b3ed87009 (patch) | |
tree | c1dfad3008b064b3d029b5cf4942c71395e9defd /scripts/upgrade | |
parent | 32af07341db19d0291f962dc0ffbb49429d06358 (diff) | |
download | crosstool-ng-1e25ebc7e04b610bf8324d6e428b320b3ed87009.tar.gz crosstool-ng-1e25ebc7e04b610bf8324d6e428b320b3ed87009.tar.bz2 crosstool-ng-1e25ebc7e04b610bf8324d6e428b320b3ed87009.zip |
Move GDB build into a common backend function
... needed to create a common runtime test for an incompatible change
in glibc API.
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'scripts/upgrade')
-rw-r--r-- | scripts/upgrade/v2 | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/scripts/upgrade/v2 b/scripts/upgrade/v2 new file mode 100644 index 00000000..afff176a --- /dev/null +++ b/scripts/upgrade/v2 @@ -0,0 +1,25 @@ +# vim: set filetype=sh : + +# Upgrade v2 -> v3: unified build of native gdb and gdbserver, +# combining their options +upgrade() +{ + case "${opt}" in + CT_GDB_GDBSERVER_BUILD_IPA_LIB) + replace CT_GDB_NATIVE_BUILD_IPA_LIB + ;; + CT_GDB_GDBSERVER_STATIC) + if [ "${CT_GDB_GDBSERVER_STATIC}" != "${CT_GDB_GDBSERVER_STATIC}" ]; then + warning "Both native gdb and gdbserver must now be built in the same way" + fi + unset opt + ;; + CT_GDB_GDBSERVER_STATIC_LIBSTDCXX) + replace GDB_NATIVE_STATIC_LIBSTDCXX + ;; + CT_GDB_GDBSERVER_HAS_IPA_LIB) + # not user-selectable + unset opt + ;; + esac +} |