1.1 --- a/configure Sat Oct 08 22:57:21 2011 +0200
1.2 +++ b/configure Fri Oct 14 22:44:24 2011 +0200
1.3 @@ -534,36 +534,8 @@
1.4 ;;
1.5 esac
1.6
1.7 -printf "Checking if static linking is possible... "
1.8 -static_link_ok=""
1.9 -case "${host}" in
1.10 - Darwin) ;;
1.11 - *) tmp=.static.tmp
1.12 - if gcc -xc - -static -o "${tmp}" >/dev/null 2>&1 <<-_EOF_
1.13 - int main() { return 0; }
1.14 - _EOF_
1.15 - then
1.16 - static_link_ok="y"
1.17 - fi
1.18 - rm -f "${tmp}"
1.19 - ;;
1.20 -esac
1.21 -if [ "${static_link_ok}" = "y" ]; then
1.22 - static_link_ko=""
1.23 - printf "yes\n"
1.24 -else
1.25 - static_link_ko="y"
1.26 - printf "no\n"
1.27 - printf " * An optional host feature is missing, some features will be disabled:\n"
1.28 - printf " * - It will not be possible to statically link toolchain's binaries\n"
1.29 -fi
1.30 -add_to_kconfig_list static_link_ok
1.31 -
1.32 # Library checks
1.33 -libs_exts="so dylib"
1.34 -if [ "${static_link_ok}" = "y" ]; then
1.35 - libs_exts="${libs_exts} a"
1.36 -fi
1.37 +libs_exts="so dylib a"
1.38
1.39 ncurses_hdrs="ncurses/ncurses.h ncurses/curses.h ncurses.h curses.h"
1.40 ncurses_libs="libncursesw libncurses libcurses"
1.41 @@ -572,46 +544,6 @@
1.42 inc="${ncurses_hdrs}" \
1.43 err="The 'ncurses' library is needed fo the menuconfig frontend"
1.44
1.45 -has_or_abort lib="libstdc++" \
1.46 - lib_exts="${libs_exts}" \
1.47 - err="The 'libstdc++' library is needed to build gcc"
1.48 -
1.49 -# Yes, we may be checking twice for libstdc++.a
1.50 -# The first is because we need one instance of libstdc++ (shared or static)
1.51 -# because it is needed for PPL; the second is because the static version is
1.52 -# required for static-linking, and if missing, the option is removed.
1.53 -has_or_warn lib="libstdc++" \
1.54 - lib_exts="a" \
1.55 - err="static 'libstdc++' is needed to statically link the toolchain's executables" \
1.56 - kconfig=has_static_libstdcxx \
1.57 - skip="${static_link_ko}"
1.58 -
1.59 -has_or_warn inc="expat.h" \
1.60 - lib="libexpat" \
1.61 - lib_exts="${libs_exts}" \
1.62 - err="The 'expat' header file and library are needed to link cross-gdb's executables" \
1.63 - kconfig=has_expat
1.64 -
1.65 -# Yes, we may be checking twice for libexpat.a
1.66 -# The first is because we need one instance of libexpat (shared or static)
1.67 -# because it is needed for cross-gdb; the second is because the static version
1.68 -# is required for static-linking, and if missing, the option is removed.
1.69 -has_or_warn lib="libexpat" \
1.70 - lib_exts="a" \
1.71 - err="static 'expat' is needed to statically link cross-gdb's executables" \
1.72 - kconfig=has_static_expat \
1.73 - skip="${static_link_ko}"
1.74 -
1.75 -for v in 7 6 5 4; do
1.76 - python_incs="${python_incs} python2.${v}/Python.h"
1.77 - python_libs="${python_libs} libpython2.${v}"
1.78 -done
1.79 -has_or_warn inc="${python_incs}" \
1.80 - lib="${python_libs}" \
1.81 - lib_exts="${libs_exts}" \
1.82 - kconfig=has_python \
1.83 - err="The 'python' header file and library are needed for some features of cross-gdb"
1.84 -
1.85 #---------------------------------------------------------------------
1.86 # Compute the version string
1.87