Ioannis E. VENETIS <venetis@mail.capsl.udel.edu> pointed out that GMP and MPFR were not used by gcc.
Turned out that none could use GMP and MPFR as the config option changed its name, but the change was not propagated to all users.
/trunk/scripts/build/binutils.sh | 2 1 1 0 +-
/trunk/scripts/build/debug/300-gdb.sh | 2 1 1 0 +-
/trunk/scripts/build/cc_gcc.sh | 6 3 3 0 +++---
3 files changed, 5 insertions(+), 5 deletions(-)
1 # Build script for the gdb debug facility
6 [ "${CT_GDB}" = "y" ] || return 0
7 echo "gdb$(do_debug_gdb_suffix)"
8 if [ "${CT_GDB_NATIVE}" = "y" ]; then
9 echo "ncurses-${CT_NCURSES_VERSION}"
13 do_debug_gdb_suffix() {
14 case "${CT_GDB_VERSION}" in
16 *) echo "-${CT_GDB_VERSION}";;
21 CT_GetFile "gdb$(do_debug_gdb_suffix)" \
22 {ftp,http}://ftp.gnu.org/pub/gnu/gdb \
23 ftp://sources.redhat.com/pub/gdb/{{,old-}releases,snapshots/current}
24 if [ "${CT_GDB_NATIVE}" = "y" ]; then
25 CT_GetFile "ncurses-${CT_NCURSES_VERSION}" \
26 {ftp,http}://ftp.gnu.org/pub/gnu/ncurses \
27 ftp://invisible-island.net/ncurses
31 do_debug_gdb_extract() {
32 CT_ExtractAndPatch "gdb$(do_debug_gdb_suffix)"
33 if [ "${CT_GDB_NATIVE}" = "y" ]; then
34 CT_ExtractAndPatch "ncurses-${CT_NCURSES_VERSION}"
38 do_debug_gdb_build() {
39 gdb_src_dir="${CT_SRC_DIR}/gdb$(do_debug_gdb_suffix)"
42 # Version 6.3 and below behave badly with gdbmi
43 case "${CT_GDB_VERSION}" in
44 6.2*|6.3) extra_config="${extra_config} --disable-gdbmi";;
47 if [ "${CT_GDB_CROSS}" = "y" ]; then
48 CT_DoStep INFO "Installing cross-gdb"
49 CT_DoLog EXTRA "Configuring cross-gdb"
51 mkdir -p "${CT_BUILD_DIR}/build-gdb-cross"
52 cd "${CT_BUILD_DIR}/build-gdb-cross"
54 cross_extra_config="${extra_config}"
55 if [ "${CT_GMP_MPFR}" = "y" ]; then
56 cross_extra_config="${cross_extra_config} --with-gmp=${CT_PREFIX_DIR} --with-mpfr=${CT_PREFIX_DIR}"
58 case "${CT_THREADS}" in
59 none) cross_extra_config="${cross_extra_config} --disable-threads";;
60 *) cross_extra_config="${cross_extra_config} --enable-threads";;
65 if [ "${CT_GDB_CROSS_STATIC}" = "y" ]; then
66 CC_for_gdb="gcc -static"
67 LD_for_gdb="ld -static"
70 CT_DoLog DEBUG "Extra config passed: '${cross_extra_config# }'"
74 "${gdb_src_dir}/configure" \
77 --target=${CT_TARGET} \
78 --prefix="${CT_PREFIX_DIR}" \
79 --with-build-sysroot="${CT_SYSROOT_DIR}" \
80 ${cross_extra_config} 2>&1 |CT_DoLog ALL
82 CT_DoLog EXTRA "Building cross-gdb"
83 make ${PARALLELMFLAGS} 2>&1 |CT_DoLog ALL
85 CT_DoLog EXTRA "Installing cross-gdb"
86 make install 2>&1 |CT_DoLog ALL
91 if [ "${CT_GDB_NATIVE}" = "y" ]; then
92 CT_DoStep INFO "Installing native gdb"
94 CT_DoStep INFO "Installing ncurses library"
95 CT_DoLog EXTRA "Configuring ncurses"
96 mkdir -p "${CT_BUILD_DIR}/build-ncurses"
97 cd "${CT_BUILD_DIR}/build-ncurses"
100 [ "${CT_CC_LANG_CXX}" = "y" ] || ncurses_opts="${ncurses_opts} --without-cxx --without-cxx-binding"
101 [ "${CT_CC_LANG_ADA}" = "y" ] || ncurses_opts="${ncurses_opts} --without-ada"
103 "${CT_SRC_DIR}/ncurses-${CT_NCURSES_VERSION}/configure" \
104 --build=${CT_BUILD} \
105 --host=${CT_TARGET} \
106 --with-build-cc=${CT_CC} \
107 --with-build-cpp=${CT_CC} \
108 --with-build-cflags="${CT_CFLAGS_FOR_HOST}" \
114 ${ncurses_opts} 2>&1 |CT_DoLog ALL
116 CT_DoLog EXTRA "Building ncurses"
117 make ${PARALLELMFLAGS} 2>&1 |CT_DoLog ALL
119 CT_DoLog EXTRA "Installing ncurses"
120 mkdir -p -v "${CT_SYSROOT_DIR}/usr/bin" 2>&1 |CT_DoLog ALL
121 make DESTDIR="${CT_SYSROOT_DIR}" install 2>&1 |CT_DoLog ALL
125 CT_DoLog EXTRA "Configuring native gdb"
127 mkdir -p "${CT_BUILD_DIR}/build-gdb-native"
128 cd "${CT_BUILD_DIR}/build-gdb-native"
130 native_extra_config="${extra_config}"
131 case "${CT_THREADS}" in
132 none) native_extra_config="${native_extra_config} --disable-threads";;
133 *) native_extra_config="${native_extra_config} --enable-threads";;
135 if [ "${CT_GDB_NATIVE_USE_GMP_MPFR}" = "y" ]; then
136 native_extra_config="${native_extra_config} --with-gmp=${CT_SYSROOT_DIR}/usr --with-mpfr=${CT_SYSROOT_DIR}/usr"
139 if [ "${CT_GDB_NATIVE_STATIC}" = "y" ]; then
140 CC_for_gdb="${CT_TARGET}-gcc -static"
141 LD_for_gdb="${CT_TARGET}-ld -static"
143 CC_for_gdb="${CT_TARGET}-gcc"
144 LD_for_gdb="${CT_TARGET}-ld"
147 export ac_cv_func_strncmp_works=yes
149 CT_DoLog DEBUG "Extra config passed: '${native_extra_config# }'"
153 "${gdb_src_dir}/configure" \
154 --build=${CT_BUILD} \
155 --host=${CT_TARGET} \
156 --target=${CT_TARGET} \
158 --with-build-sysroot="${CT_SYSROOT_DIR}" \
165 --without-included-gettext \
167 ${native_extra_config} 2>&1 |CT_DoLog ALL
169 CT_DoLog EXTRA "Building native gdb"
170 make ${PARALLELMFLAGS} CC=${CT_TARGET}-${CT_CC} 2>&1 |CT_DoLog ALL
172 CT_DoLog EXTRA "Installing native gdb"
173 make DESTDIR="${CT_DEBUG_INSTALL_DIR}" install 2>&1 |CT_DoLog ALL
175 # Building a native gdb also builds a gdbserver
176 find "${CT_DEBUG_INSTALL_DIR}" -type f -name gdbserver -exec rm -fv {} + 2>&1 |CT_DoLog ALL
178 unset ac_cv_func_strncmp_works
183 if [ "${CT_GDB_GDBSERVER}" = "y" ]; then
184 CT_DoStep INFO "Installing gdbserver"
185 CT_DoLog EXTRA "Configuring gdbserver"
187 mkdir -p "${CT_BUILD_DIR}/build-gdb-gdbserver"
188 cd "${CT_BUILD_DIR}/build-gdb-gdbserver"
190 # Workaround for bad versions, where the configure
191 # script for gdbserver is not executable...
192 # Bah, GNU folks strike again... :-(
193 chmod +x "${gdb_src_dir}/gdb/gdbserver/configure"
196 if [ "${CT_GDB_GDBSERVER_STATIC}" = "y" ]; then
197 gdbserver_LDFLAGS=-static
200 gdbserver_extra_config="${extra_config}"
202 LDFLAGS="${gdbserver_LDFLAGS}" \
203 "${gdb_src_dir}/gdb/gdbserver/configure" \
204 --build=${CT_BUILD} \
205 --host=${CT_TARGET} \
206 --target=${CT_TARGET} \
209 --localstatedir=/var \
210 --includedir="${CT_HEADERS_DIR}" \
211 --with-build-sysroot="${CT_SYSROOT_DIR}" \
217 --without-included-gettext \
219 ${gdbserver_extra_config} 2>&1 |CT_DoLog ALL
221 CT_DoLog EXTRA "Building gdbserver"
222 make ${PARALLELMFLAGS} CC=${CT_TARGET}-${CT_CC} 2>&1 |CT_DoLog ALL
224 CT_DoLog EXTRA "Installing gdbserver"
225 make DESTDIR="${CT_DEBUG_INSTALL_DIR}" install 2>&1 |CT_DoLog ALL