From eaf8c08bf7343fa10063296526ba1d358888ced1 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 15 Feb 2011 11:41:06 -0800 Subject: binutils_2.21: Fix QA errors due to wrong RPATH Signed-off-by: Khem Raj --- .../binutils-2.21/libtool-2.4-update.patch | 1638 ++++++++++---------- recipes/binutils/binutils_2.21.bb | 2 +- 2 files changed, 826 insertions(+), 814 deletions(-) diff --git a/recipes/binutils/binutils-2.21/libtool-2.4-update.patch b/recipes/binutils/binutils-2.21/libtool-2.4-update.patch index 52c4928c8b..e6bd4afc1d 100644 --- a/recipes/binutils/binutils-2.21/libtool-2.4-update.patch +++ b/recipes/binutils/binutils-2.21/libtool-2.4-update.patch @@ -1,7 +1,7 @@ Index: binutils-2.21/libtool.m4 =================================================================== ---- binutils-2.21.orig/libtool.m4 2010-01-09 13:11:31.000000000 -0800 -+++ binutils-2.21/libtool.m4 2011-01-07 10:49:16.396101000 -0800 +--- binutils-2.21.orig/libtool.m4 ++++ binutils-2.21/libtool.m4 @@ -1,7 +1,8 @@ # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- # @@ -22,7 +22,7 @@ Index: binutils-2.21/libtool.m4 # Written by Gordon Matzigkeit, 1996 # # This file is part of GNU Libtool. -@@ -37,7 +39,7 @@ +@@ -37,7 +39,7 @@ m4_define([_LT_COPYING], [dnl # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. ]) @@ -31,7 +31,7 @@ Index: binutils-2.21/libtool.m4 # LT_PREREQ(VERSION) -@@ -92,7 +94,8 @@ +@@ -92,7 +94,8 @@ _LT_SET_OPTIONS([$0], [$1]) LIBTOOL_DEPS="$ltmain" # Always use our own libtool. @@ -41,7 +41,7 @@ Index: binutils-2.21/libtool.m4 AC_SUBST(LIBTOOL)dnl _LT_SETUP -@@ -166,10 +169,13 @@ +@@ -166,10 +169,13 @@ _LT_DECL([], [exeext], [0], [Executable dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_CHECK_SHELL_FEATURES])dnl @@ -55,7 +55,7 @@ Index: binutils-2.21/libtool.m4 _LT_CONFIG_LIBTOOL_INIT([ # See if we are running on zsh, and set the options which allow our -@@ -199,7 +205,7 @@ +@@ -199,7 +205,7 @@ aix3*) esac # Global variables: @@ -64,7 +64,7 @@ Index: binutils-2.21/libtool.m4 can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, -@@ -632,7 +638,7 @@ +@@ -632,7 +638,7 @@ m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_ m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) configured by $[0], generated by m4_PACKAGE_STRING. @@ -73,7 +73,7 @@ Index: binutils-2.21/libtool.m4 This config.lt script is free software; the Free Software Foundation gives unlimited permision to copy, distribute and modify it." -@@ -746,15 +752,12 @@ +@@ -746,15 +752,12 @@ _LT_EOF # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? @@ -93,7 +93,7 @@ Index: binutils-2.21/libtool.m4 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ], -@@ -980,6 +983,8 @@ +@@ -980,6 +983,8 @@ _LT_EOF $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD @@ -102,7 +102,7 @@ Index: binutils-2.21/libtool.m4 cat > conftest.c << _LT_EOF int main() { return 0;} _LT_EOF -@@ -1069,30 +1074,41 @@ +@@ -1069,30 +1074,41 @@ m4_defun([_LT_DARWIN_LINKER_FEATURES], fi ]) @@ -160,7 +160,7 @@ Index: binutils-2.21/libtool.m4 ])# _LT_SYS_MODULE_PATH_AIX -@@ -1117,7 +1133,7 @@ +@@ -1117,7 +1133,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO AC_MSG_CHECKING([how to print strings]) # Test print first, because it will be a builtin if present. @@ -169,7 +169,7 @@ Index: binutils-2.21/libtool.m4 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='print -r --' elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then -@@ -1161,6 +1177,39 @@ +@@ -1161,6 +1177,39 @@ _LT_DECL([], [ECHO], [1], [An echo progr ])# _LT_PROG_ECHO_BACKSLASH @@ -209,7 +209,7 @@ Index: binutils-2.21/libtool.m4 # _LT_ENABLE_LOCK # --------------- m4_defun([_LT_ENABLE_LOCK], -@@ -1307,14 +1356,47 @@ +@@ -1307,14 +1356,47 @@ need_locks="$enable_libtool_lock" ])# _LT_ENABLE_LOCK @@ -262,7 +262,7 @@ Index: binutils-2.21/libtool.m4 AC_CHECK_TOOL(STRIP, strip, :) test -z "$STRIP" && STRIP=: -@@ -1610,7 +1692,7 @@ +@@ -1610,7 +1692,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF @@ -271,7 +271,7 @@ Index: binutils-2.21/libtool.m4 #include "confdefs.h" #if HAVE_DLFCN_H -@@ -1654,10 +1736,10 @@ +@@ -1654,10 +1736,10 @@ else /* When -fvisbility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) @@ -284,7 +284,7 @@ Index: binutils-2.21/libtool.m4 int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); -@@ -2197,8 +2279,9 @@ +@@ -2197,8 +2279,9 @@ cygwin* | mingw* | pw32* | cegcc*) need_version=no need_lib_prefix=no @@ -296,7 +296,7 @@ Index: binutils-2.21/libtool.m4 library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ -@@ -2231,13 +2314,71 @@ +@@ -2231,13 +2314,71 @@ m4_if([$1], [],[ library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' ;; esac @@ -369,7 +369,7 @@ Index: binutils-2.21/libtool.m4 # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; -@@ -2333,7 +2474,7 @@ +@@ -2333,7 +2474,7 @@ haiku*) soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=yes @@ -378,7 +378,7 @@ Index: binutils-2.21/libtool.m4 hardcode_into_libs=yes ;; -@@ -2941,6 +3082,11 @@ +@@ -2941,6 +3082,11 @@ case $reload_flag in esac reload_cmds='$LD$reload_flag -o $output$reload_objs' case $host_os in @@ -390,7 +390,7 @@ Index: binutils-2.21/libtool.m4 darwin*) if test "$GCC" = yes; then reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' -@@ -3007,7 +3153,8 @@ +@@ -3007,7 +3153,8 @@ mingw* | pw32*) lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else @@ -400,7 +400,7 @@ Index: binutils-2.21/libtool.m4 lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; -@@ -3158,6 +3305,21 @@ +@@ -3158,6 +3305,21 @@ tpf*) ;; esac ]) @@ -422,7 +422,7 @@ Index: binutils-2.21/libtool.m4 file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown -@@ -3165,7 +3327,11 @@ +@@ -3165,7 +3327,11 @@ test -z "$deplibs_check_method" && depli _LT_DECL([], [deplibs_check_method], [1], [Method to check whether dependent libraries are shared objects]) _LT_DECL([], [file_magic_cmd], [1], @@ -435,7 +435,7 @@ Index: binutils-2.21/libtool.m4 ])# _LT_CHECK_MAGIC_METHOD -@@ -3268,6 +3434,67 @@ +@@ -3268,6 +3434,67 @@ dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_PROG_NM], []) dnl AC_DEFUN([AC_PROG_NM], []) @@ -503,7 +503,7 @@ Index: binutils-2.21/libtool.m4 # LT_LIB_M # -------- -@@ -3394,8 +3621,8 @@ +@@ -3394,8 +3621,8 @@ esac lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address @@ -514,7 +514,7 @@ Index: binutils-2.21/libtool.m4 # Handle CRLF in mingw tool chain opt_cr= -@@ -3431,6 +3658,7 @@ +@@ -3431,6 +3658,7 @@ for ac_symprfx in "" "_"; do else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi @@ -522,7 +522,7 @@ Index: binutils-2.21/libtool.m4 # Check to see that the pipe works correctly. pipe_works=no -@@ -3464,6 +3692,18 @@ +@@ -3464,6 +3692,18 @@ _LT_EOF if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext @@ -541,7 +541,7 @@ Index: binutils-2.21/libtool.m4 #ifdef __cplusplus extern "C" { #endif -@@ -3475,7 +3715,7 @@ +@@ -3475,7 +3715,7 @@ _LT_EOF cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ @@ -550,7 +550,7 @@ Index: binutils-2.21/libtool.m4 const char *name; void *address; } -@@ -3501,15 +3741,15 @@ +@@ -3501,15 +3741,15 @@ static const void *lt_preloaded_setup() _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext @@ -570,7 +570,7 @@ Index: binutils-2.21/libtool.m4 else echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD fi -@@ -3542,6 +3782,13 @@ +@@ -3542,6 +3782,13 @@ else AC_MSG_RESULT(ok) fi @@ -584,7 +584,7 @@ Index: binutils-2.21/libtool.m4 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], [Take the output of nm and produce a listing of raw symbols and C names]) _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], -@@ -3552,6 +3799,8 @@ +@@ -3552,6 +3799,8 @@ _LT_DECL([global_symbol_to_c_name_addres _LT_DECL([global_symbol_to_c_name_address_lib_prefix], [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], [Transform the output of nm in a C name address pair when lib prefix is needed]) @@ -593,7 +593,7 @@ Index: binutils-2.21/libtool.m4 ]) # _LT_CMD_GLOBAL_SYMBOLS -@@ -3563,7 +3812,6 @@ +@@ -3563,7 +3812,6 @@ _LT_TAGVAR(lt_prog_compiler_wl, $1)= _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)= @@ -601,7 +601,7 @@ Index: binutils-2.21/libtool.m4 m4_if([$1], [CXX], [ # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then -@@ -3668,6 +3916,12 @@ +@@ -3668,6 +3916,12 @@ m4_if([$1], [CXX], [ ;; esac ;; @@ -614,7 +614,7 @@ Index: binutils-2.21/libtool.m4 dgux*) case $cc_basename in ec++*) -@@ -3820,7 +4074,7 @@ +@@ -3820,7 +4074,7 @@ m4_if([$1], [CXX], [ ;; solaris*) case $cc_basename in @@ -623,7 +623,7 @@ Index: binutils-2.21/libtool.m4 # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' -@@ -4042,6 +4296,12 @@ +@@ -4042,6 +4296,12 @@ m4_if([$1], [CXX], [ _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' ;; @@ -636,7 +636,7 @@ Index: binutils-2.21/libtool.m4 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) -@@ -4104,7 +4364,7 @@ +@@ -4104,7 +4364,7 @@ m4_if([$1], [CXX], [ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' case $cc_basename in @@ -645,7 +645,7 @@ Index: binutils-2.21/libtool.m4 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; *) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; -@@ -4161,9 +4421,11 @@ +@@ -4161,9 +4421,11 @@ case $host_os in _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" ;; esac @@ -660,7 +660,7 @@ Index: binutils-2.21/libtool.m4 # # Check to make sure the PIC flag actually works. -@@ -4182,6 +4444,8 @@ +@@ -4182,6 +4444,8 @@ fi _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], [Additional compiler flags for building library objects]) @@ -669,7 +669,7 @@ Index: binutils-2.21/libtool.m4 # # Check to make sure the static flag actually works. # -@@ -4202,6 +4466,7 @@ +@@ -4202,6 +4466,7 @@ _LT_TAGDECL([link_static_flag], [lt_prog m4_defun([_LT_LINKER_SHLIBS], [AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl @@ -677,7 +677,7 @@ Index: binutils-2.21/libtool.m4 m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_DECL_SED])dnl -@@ -4210,6 +4475,7 @@ +@@ -4210,6 +4475,7 @@ m4_require([_LT_TAG_COMPILER])dnl AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) m4_if([$1], [CXX], [ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' @@ -685,7 +685,7 @@ Index: binutils-2.21/libtool.m4 case $host_os in aix[[4-9]]*) # If we're using GNU nm, then we don't want the "-C" option. -@@ -4224,15 +4490,20 @@ +@@ -4224,15 +4490,20 @@ m4_if([$1], [CXX], [ ;; pw32*) _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" @@ -711,7 +711,7 @@ Index: binutils-2.21/libtool.m4 ], [ runpath_var= _LT_TAGVAR(allow_undefined_flag, $1)= -@@ -4400,7 +4671,8 @@ +@@ -4400,7 +4671,8 @@ _LT_EOF _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes @@ -721,7 +721,7 @@ Index: binutils-2.21/libtool.m4 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' -@@ -4448,7 +4720,7 @@ +@@ -4448,7 +4720,7 @@ _LT_EOF if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test "$tmp_diet" = no then @@ -730,7 +730,7 @@ Index: binutils-2.21/libtool.m4 tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler -@@ -4499,12 +4771,12 @@ +@@ -4499,12 +4771,12 @@ _LT_EOF _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' @@ -745,7 +745,7 @@ Index: binutils-2.21/libtool.m4 fi ;; esac -@@ -4518,8 +4790,8 @@ +@@ -4518,8 +4790,8 @@ _LT_EOF _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else @@ -756,7 +756,7 @@ Index: binutils-2.21/libtool.m4 fi ;; -@@ -4537,8 +4809,8 @@ +@@ -4537,8 +4809,8 @@ _LT_EOF _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then @@ -767,7 +767,7 @@ Index: binutils-2.21/libtool.m4 else _LT_TAGVAR(ld_shlibs, $1)=no fi -@@ -4584,8 +4856,8 @@ +@@ -4584,8 +4856,8 @@ _LT_EOF *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then @@ -778,7 +778,7 @@ Index: binutils-2.21/libtool.m4 else _LT_TAGVAR(ld_shlibs, $1)=no fi -@@ -4715,7 +4987,7 @@ +@@ -4715,7 +4987,7 @@ _LT_EOF _LT_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an # empty executable. @@ -787,7 +787,7 @@ Index: binutils-2.21/libtool.m4 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else -@@ -4726,7 +4998,7 @@ +@@ -4726,7 +4998,7 @@ _LT_EOF else # Determine the default libpath from the value encoded in an # empty executable. @@ -796,7 +796,7 @@ Index: binutils-2.21/libtool.m4 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. -@@ -4770,20 +5042,63 @@ +@@ -4770,20 +5042,63 @@ _LT_EOF # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. @@ -874,7 +874,7 @@ Index: binutils-2.21/libtool.m4 ;; darwin* | rhapsody*) -@@ -4821,7 +5136,7 @@ +@@ -4821,7 +5136,7 @@ _LT_EOF # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) @@ -883,7 +883,7 @@ Index: binutils-2.21/libtool.m4 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no -@@ -4829,7 +5144,7 @@ +@@ -4829,7 +5144,7 @@ _LT_EOF hpux9*) if test "$GCC" = yes; then @@ -892,7 +892,7 @@ Index: binutils-2.21/libtool.m4 else _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi -@@ -4845,7 +5160,7 @@ +@@ -4845,7 +5160,7 @@ _LT_EOF hpux10*) if test "$GCC" = yes && test "$with_gnu_ld" = no; then @@ -901,7 +901,7 @@ Index: binutils-2.21/libtool.m4 else _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi -@@ -4869,10 +5184,10 @@ +@@ -4869,10 +5184,10 @@ _LT_EOF _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) @@ -914,7 +914,7 @@ Index: binutils-2.21/libtool.m4 ;; esac else -@@ -4919,16 +5234,31 @@ +@@ -4919,16 +5234,31 @@ _LT_EOF irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then @@ -953,7 +953,7 @@ Index: binutils-2.21/libtool.m4 else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' -@@ -5013,7 +5343,7 @@ +@@ -5013,7 +5343,7 @@ _LT_EOF osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' @@ -962,7 +962,7 @@ Index: binutils-2.21/libtool.m4 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' -@@ -5032,9 +5362,9 @@ +@@ -5032,9 +5362,9 @@ _LT_EOF _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' if test "$GCC" = yes; then wlarc='${wl}' @@ -974,7 +974,7 @@ Index: binutils-2.21/libtool.m4 else case `$CC -V 2>&1` in *"Compilers 5.0"*) -@@ -5306,8 +5636,6 @@ +@@ -5306,8 +5636,6 @@ _LT_TAGDECL([], [inherit_rpath], [0], to runtime path list]) _LT_TAGDECL([], [link_all_deplibs], [0], [Whether libtool must link a program against all its dependency libraries]) @@ -983,7 +983,7 @@ Index: binutils-2.21/libtool.m4 _LT_TAGDECL([], [always_export_symbols], [0], [Set to "yes" if exported symbols are required]) _LT_TAGDECL([], [export_symbols_cmds], [2], -@@ -5318,6 +5646,8 @@ +@@ -5318,6 +5646,8 @@ _LT_TAGDECL([], [include_expsyms], [1], [Symbols that must always be exported]) _LT_TAGDECL([], [prelink_cmds], [2], [Commands necessary for linking programs (against libraries) with templates]) @@ -992,7 +992,7 @@ Index: binutils-2.21/libtool.m4 _LT_TAGDECL([], [file_list_spec], [1], [Specify filename containing input files]) dnl FIXME: Not yet implemented -@@ -5419,6 +5749,7 @@ +@@ -5419,6 +5749,7 @@ CC="$lt_save_CC" m4_defun([_LT_LANG_CXX_CONFIG], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl @@ -1000,7 +1000,7 @@ Index: binutils-2.21/libtool.m4 if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then -@@ -5480,6 +5811,7 @@ +@@ -5480,6 +5811,7 @@ if test "$_lt_caught_CXX_error" != yes; # Allow CC to be a program name with arguments. lt_save_CC=$CC @@ -1008,7 +1008,7 @@ Index: binutils-2.21/libtool.m4 lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX -@@ -5497,6 +5829,7 @@ +@@ -5497,6 +5829,7 @@ if test "$_lt_caught_CXX_error" != yes; fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} @@ -1016,7 +1016,7 @@ Index: binutils-2.21/libtool.m4 compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) -@@ -5518,8 +5851,8 @@ +@@ -5518,8 +5851,8 @@ if test "$_lt_caught_CXX_error" != yes; # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test "$with_gnu_ld" = yes; then @@ -1027,7 +1027,7 @@ Index: binutils-2.21/libtool.m4 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' -@@ -5660,7 +5993,7 @@ +@@ -5660,7 +5993,7 @@ if test "$_lt_caught_CXX_error" != yes; _LT_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an empty # executable. @@ -1036,7 +1036,7 @@ Index: binutils-2.21/libtool.m4 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" -@@ -5672,7 +6005,7 @@ +@@ -5672,7 +6005,7 @@ if test "$_lt_caught_CXX_error" != yes; else # Determine the default libpath from the value encoded in an # empty executable. @@ -1045,7 +1045,7 @@ Index: binutils-2.21/libtool.m4 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. -@@ -5714,29 +6047,75 @@ +@@ -5714,29 +6047,75 @@ if test "$_lt_caught_CXX_error" != yes; ;; cygwin* | mingw* | pw32* | cegcc*) @@ -1144,7 +1144,7 @@ Index: binutils-2.21/libtool.m4 darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; -@@ -5811,7 +6190,7 @@ +@@ -5811,7 +6190,7 @@ if test "$_lt_caught_CXX_error" != yes; ;; *) if test "$GXX" = yes; then @@ -1153,7 +1153,7 @@ Index: binutils-2.21/libtool.m4 else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no -@@ -5882,10 +6261,10 @@ +@@ -5882,10 +6261,10 @@ if test "$_lt_caught_CXX_error" != yes; _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) @@ -1166,7 +1166,7 @@ Index: binutils-2.21/libtool.m4 ;; esac fi -@@ -5926,9 +6305,9 @@ +@@ -5926,9 +6305,9 @@ if test "$_lt_caught_CXX_error" != yes; *) if test "$GXX" = yes; then if test "$with_gnu_ld" = no; then @@ -1178,7 +1178,7 @@ Index: binutils-2.21/libtool.m4 fi fi _LT_TAGVAR(link_all_deplibs, $1)=yes -@@ -5998,20 +6377,20 @@ +@@ -5998,20 +6377,20 @@ if test "$_lt_caught_CXX_error" != yes; _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ @@ -1203,7 +1203,7 @@ Index: binutils-2.21/libtool.m4 ;; *) # Version 6 and above use weak symbols _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' -@@ -6206,7 +6585,7 @@ +@@ -6206,7 +6585,7 @@ if test "$_lt_caught_CXX_error" != yes; _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ;; *) @@ -1212,7 +1212,7 @@ Index: binutils-2.21/libtool.m4 ;; esac -@@ -6252,7 +6631,7 @@ +@@ -6252,7 +6631,7 @@ if test "$_lt_caught_CXX_error" != yes; solaris*) case $cc_basename in @@ -1221,7 +1221,7 @@ Index: binutils-2.21/libtool.m4 # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(archive_cmds_need_lc,$1)=yes _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' -@@ -6293,9 +6672,9 @@ +@@ -6293,9 +6672,9 @@ if test "$_lt_caught_CXX_error" != yes; if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' if $CC --version | $GREP -v '^2\.7' > /dev/null; then @@ -1233,7 +1233,7 @@ Index: binutils-2.21/libtool.m4 # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when -@@ -6424,6 +6803,7 @@ +@@ -6424,6 +6803,7 @@ if test "$_lt_caught_CXX_error" != yes; fi # test -n "$compiler" CC=$lt_save_CC @@ -1241,7 +1241,7 @@ Index: binutils-2.21/libtool.m4 LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC -@@ -6438,6 +6818,29 @@ +@@ -6438,6 +6818,29 @@ AC_LANG_POP ])# _LT_LANG_CXX_CONFIG @@ -1271,7 +1271,7 @@ Index: binutils-2.21/libtool.m4 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) # --------------------------------- # Figure out "hidden" library dependencies from verbose -@@ -6446,6 +6849,7 @@ +@@ -6446,6 +6849,7 @@ AC_LANG_POP # objects, libraries and library flags. m4_defun([_LT_SYS_HIDDEN_LIBDEPS], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl @@ -1279,7 +1279,7 @@ Index: binutils-2.21/libtool.m4 # Dependencies to place before and after the object being linked: _LT_TAGVAR(predep_objects, $1)= _LT_TAGVAR(postdep_objects, $1)= -@@ -6496,6 +6900,13 @@ +@@ -6496,6 +6900,13 @@ public class foo { }; _LT_EOF ]) @@ -1293,7 +1293,7 @@ Index: binutils-2.21/libtool.m4 dnl Parse the compiler output and extract the necessary dnl objects, libraries and library flags. if AC_TRY_EVAL(ac_compile); then -@@ -6507,7 +6918,7 @@ +@@ -6507,7 +6918,7 @@ if AC_TRY_EVAL(ac_compile); then pre_test_object_deps_done=no for p in `eval "$output_verbose_link_cmd"`; do @@ -1302,7 +1302,7 @@ Index: binutils-2.21/libtool.m4 -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. -@@ -6516,13 +6927,22 @@ +@@ -6516,13 +6927,22 @@ if AC_TRY_EVAL(ac_compile); then test $p = "-R"; then prev=$p continue @@ -1329,7 +1329,7 @@ Index: binutils-2.21/libtool.m4 # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. -@@ -6542,8 +6962,10 @@ +@@ -6542,8 +6962,10 @@ if AC_TRY_EVAL(ac_compile); then _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" fi fi @@ -1340,7 +1340,7 @@ Index: binutils-2.21/libtool.m4 *.$objext) # This assumes that the test object file only shows up # once in the compiler output. -@@ -6579,6 +7001,7 @@ +@@ -6579,6 +7001,7 @@ else fi $RM -f confest.$objext @@ -1348,7 +1348,7 @@ Index: binutils-2.21/libtool.m4 # PORTME: override above test on systems where it is broken m4_if([$1], [CXX], -@@ -6615,7 +7038,7 @@ +@@ -6615,7 +7038,7 @@ linux*) solaris*) case $cc_basename in @@ -1357,7 +1357,7 @@ Index: binutils-2.21/libtool.m4 # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as -@@ -6728,7 +7151,9 @@ +@@ -6728,7 +7151,9 @@ if test "$_lt_disable_F77" != yes; then # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_GCC=$GCC @@ -1367,7 +1367,7 @@ Index: binutils-2.21/libtool.m4 compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) -@@ -6782,6 +7207,7 @@ +@@ -6782,6 +7207,7 @@ if test "$_lt_disable_F77" != yes; then GCC=$lt_save_GCC CC="$lt_save_CC" @@ -1375,7 +1375,7 @@ Index: binutils-2.21/libtool.m4 fi # test "$_lt_disable_F77" != yes AC_LANG_POP -@@ -6858,7 +7284,9 @@ +@@ -6858,7 +7284,9 @@ if test "$_lt_disable_FC" != yes; then # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_GCC=$GCC @@ -1385,7 +1385,7 @@ Index: binutils-2.21/libtool.m4 compiler=$CC GCC=$ac_cv_fc_compiler_gnu -@@ -6914,7 +7342,8 @@ +@@ -6914,7 +7342,8 @@ if test "$_lt_disable_FC" != yes; then fi # test -n "$compiler" GCC=$lt_save_GCC @@ -1395,7 +1395,7 @@ Index: binutils-2.21/libtool.m4 fi # test "$_lt_disable_FC" != yes AC_LANG_POP -@@ -6951,10 +7380,12 @@ +@@ -6951,10 +7380,12 @@ _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. @@ -1409,7 +1409,7 @@ Index: binutils-2.21/libtool.m4 compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(LD, $1)="$LD" -@@ -6985,7 +7416,8 @@ +@@ -6985,7 +7416,8 @@ fi AC_LANG_RESTORE GCC=$lt_save_GCC @@ -1419,7 +1419,7 @@ Index: binutils-2.21/libtool.m4 ])# _LT_LANG_GCJ_CONFIG -@@ -7020,9 +7452,11 @@ +@@ -7020,9 +7452,11 @@ _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" @@ -1431,7 +1431,7 @@ Index: binutils-2.21/libtool.m4 compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) -@@ -7035,7 +7469,8 @@ +@@ -7035,7 +7469,8 @@ fi GCC=$lt_save_GCC AC_LANG_RESTORE @@ -1441,7 +1441,7 @@ Index: binutils-2.21/libtool.m4 ])# _LT_LANG_RC_CONFIG -@@ -7094,6 +7529,15 @@ +@@ -7094,6 +7529,15 @@ _LT_DECL([], [OBJDUMP], [1], [An object AC_SUBST([OBJDUMP]) ]) @@ -1457,7 +1457,7 @@ Index: binutils-2.21/libtool.m4 # _LT_DECL_SED # ------------ -@@ -7187,8 +7631,8 @@ +@@ -7187,8 +7631,8 @@ m4_defun([_LT_CHECK_SHELL_FEATURES], # Try some XSI features xsi_shell=no ( _lt_dummy="a/b/c" @@ -1468,7 +1468,7 @@ Index: binutils-2.21/libtool.m4 && eval 'test $(( 1 + 1 )) -eq 2 \ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ && xsi_shell=yes -@@ -7227,206 +7671,162 @@ +@@ -7227,206 +7671,162 @@ _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn ])# _LT_CHECK_SHELL_FEATURES @@ -1823,8 +1823,8 @@ Index: binutils-2.21/libtool.m4 +])# _LT_PATH_CONVERSION_FUNCTIONS Index: binutils-2.21/ltmain.sh =================================================================== ---- binutils-2.21.orig/ltmain.sh 2010-01-09 13:11:32.000000000 -0800 -+++ binutils-2.21/ltmain.sh 2011-01-07 10:49:16.406101000 -0800 +--- binutils-2.21.orig/ltmain.sh ++++ binutils-2.21/ltmain.sh @@ -1,10 +1,9 @@ -# Generated from ltmain.m4sh. @@ -1870,7 +1870,7 @@ Index: binutils-2.21/ltmain.sh # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then -@@ -106,9 +106,6 @@ +@@ -106,9 +106,6 @@ _LTECHO_EOF' } # NLS nuisances: We save the old values to restore during execute mode. @@ -1880,7 +1880,7 @@ Index: binutils-2.21/ltmain.sh lt_user_locale= lt_safe_locale= for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES -@@ -121,15 +118,13 @@ +@@ -121,15 +118,13 @@ do lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\" fi" done @@ -1899,7 +1899,7 @@ Index: binutils-2.21/ltmain.sh # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh # is ksh but when the shell is invoked as "sh" and the current value of # the _XPG environment variable is not equal to 1 (one), the special -@@ -140,7 +135,7 @@ +@@ -140,7 +135,7 @@ progpath="$0" : ${CP="cp -f"} @@ -1908,7 +1908,7 @@ Index: binutils-2.21/ltmain.sh : ${EGREP="/bin/grep -E"} : ${FGREP="/bin/grep -F"} : ${GREP="/bin/grep"} -@@ -149,7 +144,7 @@ +@@ -149,7 +144,7 @@ progpath="$0" : ${MKDIR="mkdir"} : ${MV="mv -f"} : ${RM="rm -f"} @@ -1917,7 +1917,7 @@ Index: binutils-2.21/ltmain.sh : ${SHELL="${CONFIG_SHELL-/bin/sh}"} : ${Xsed="$SED -e 1s/^X//"} -@@ -169,6 +164,27 @@ +@@ -169,6 +164,27 @@ IFS=" $lt_nl" dirname="s,/[^/]*$,," basename="s,^.*/,," @@ -1945,7 +1945,7 @@ Index: binutils-2.21/ltmain.sh # func_dirname_and_basename file append nondir_replacement # perform func_basename and func_dirname in a single function # call: -@@ -183,17 +199,31 @@ +@@ -183,17 +199,31 @@ basename="s,^.*/,," # those functions but instead duplicate the functionality here. func_dirname_and_basename () { @@ -1987,7 +1987,7 @@ Index: binutils-2.21/ltmain.sh # These SED scripts presuppose an absolute path with a trailing slash. pathcar='s,^/\([^/]*\).*$,\1,' -@@ -376,6 +406,15 @@ +@@ -376,6 +406,15 @@ sed_quote_subst='s/\([`"$\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\(["`\\]\)/\\\1/g' @@ -2003,7 +2003,7 @@ Index: binutils-2.21/ltmain.sh # Re-`\' parameter expansions in output of double_quote_subst that were # `\'-ed in input to the same. If an odd number of `\' preceded a '$' # in input to double_quote_subst, that '$' was protected from expansion. -@@ -404,7 +443,7 @@ +@@ -404,7 +443,7 @@ opt_warning=: # name if it has been set yet. func_echo () { @@ -2012,7 +2012,7 @@ Index: binutils-2.21/ltmain.sh } # func_verbose arg... -@@ -430,14 +469,14 @@ +@@ -430,14 +469,14 @@ func_echo_all () # Echo program name prefixed message to standard error. func_error () { @@ -2029,7 +2029,7 @@ Index: binutils-2.21/ltmain.sh # bash bug again: : -@@ -656,19 +695,35 @@ +@@ -656,19 +695,35 @@ func_show_eval_locale () fi } @@ -2068,7 +2068,7 @@ Index: binutils-2.21/ltmain.sh b more } :go -@@ -685,7 +740,9 @@ +@@ -685,7 +740,9 @@ func_version () # Echo short help message to standard output and exit. func_usage () { @@ -2079,7 +2079,7 @@ Index: binutils-2.21/ltmain.sh s/^# // s/^# *$// s/\$progname/'$progname'/ -@@ -701,7 +758,10 @@ +@@ -701,7 +758,10 @@ func_usage () # unless 'noexit' is passed as argument. func_help () { @@ -2090,7 +2090,7 @@ Index: binutils-2.21/ltmain.sh s/^# // s/^# *$// s*\$progname*'$progname'* -@@ -714,7 +774,11 @@ +@@ -714,7 +774,11 @@ func_help () s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/ s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/ p @@ -2103,7 +2103,7 @@ Index: binutils-2.21/ltmain.sh ret=$? if test -z "$1"; then exit $ret -@@ -726,12 +790,39 @@ +@@ -726,12 +790,39 @@ func_help () # exit_cmd. func_missing_arg () { @@ -2145,7 +2145,7 @@ Index: binutils-2.21/ltmain.sh -@@ -741,26 +832,64 @@ +@@ -741,26 +832,64 @@ magic="%%%MAGIC variable%%%" magic_exe="%%%MAGIC EXE variable%%%" # Global variables. @@ -2218,7 +2218,7 @@ Index: binutils-2.21/ltmain.sh # func_fatal_configuration arg... # Echo program name prefixed message to standard error, followed by # a configuration failure hint, and exit. -@@ -850,130 +979,204 @@ +@@ -850,130 +979,204 @@ func_enable_tag () esac } @@ -2517,7 +2517,7 @@ Index: binutils-2.21/ltmain.sh case $host in *cygwin* | *mingw* | *pw32* | *cegcc*) -@@ -981,82 +1184,44 @@ +@@ -981,82 +1184,44 @@ func_enable_tag () opt_duplicate_compiler_generated_deps=: ;; *) @@ -2624,7 +2624,7 @@ Index: binutils-2.21/ltmain.sh # func_lalib_p file # True iff FILE is a libtool `.la' library or `.lo' object file. -@@ -1121,12 +1286,9 @@ +@@ -1121,12 +1286,9 @@ func_ltwrapper_executable_p () # temporary ltwrapper_script. func_ltwrapper_scriptname () { @@ -2640,7 +2640,7 @@ Index: binutils-2.21/ltmain.sh } # func_ltwrapper_p file -@@ -1149,7 +1311,7 @@ +@@ -1149,7 +1311,7 @@ func_execute_cmds () save_ifs=$IFS; IFS='~' for cmd in $1; do IFS=$save_ifs @@ -2649,7 +2649,7 @@ Index: binutils-2.21/ltmain.sh func_show_eval "$cmd" "${2-:}" done IFS=$save_ifs -@@ -1172,6 +1334,37 @@ +@@ -1172,6 +1334,37 @@ func_source () } @@ -2687,7 +2687,7 @@ Index: binutils-2.21/ltmain.sh # func_infer_tag arg # Infer tagged configuration to use if any are available and # if one wasn't chosen via the "--tag" command line option. -@@ -1184,8 +1377,7 @@ +@@ -1184,8 +1377,7 @@ func_infer_tag () if test -n "$available_tags" && test -z "$tagname"; then CC_quoted= for arg in $CC; do @@ -2697,7 +2697,7 @@ Index: binutils-2.21/ltmain.sh done CC_expanded=`func_echo_all $CC` CC_quoted_expanded=`func_echo_all $CC_quoted` -@@ -1204,8 +1396,7 @@ +@@ -1204,8 +1396,7 @@ func_infer_tag () CC_quoted= for arg in $CC; do # Double-quote args containing other shell metacharacters. @@ -2707,7 +2707,7 @@ Index: binutils-2.21/ltmain.sh done CC_expanded=`func_echo_all $CC` CC_quoted_expanded=`func_echo_all $CC_quoted` -@@ -1274,6 +1465,486 @@ +@@ -1274,6 +1465,486 @@ EOF } } @@ -3194,7 +3194,7 @@ Index: binutils-2.21/ltmain.sh # func_mode_compile arg... func_mode_compile () { -@@ -1314,12 +1985,12 @@ +@@ -1314,12 +1985,12 @@ func_mode_compile () ;; -pie | -fpie | -fPIE) @@ -3209,7 +3209,7 @@ Index: binutils-2.21/ltmain.sh continue ;; -@@ -1340,15 +2011,14 @@ +@@ -1340,15 +2011,14 @@ func_mode_compile () save_ifs="$IFS"; IFS=',' for arg in $args; do IFS="$save_ifs" @@ -3227,7 +3227,7 @@ Index: binutils-2.21/ltmain.sh continue ;; -@@ -1364,8 +2034,7 @@ +@@ -1364,8 +2034,7 @@ func_mode_compile () esac # case $arg_mode # Aesthetically quote the previous argument. @@ -3237,7 +3237,7 @@ Index: binutils-2.21/ltmain.sh done # for arg case $arg_mode in -@@ -1496,17 +2165,16 @@ +@@ -1496,17 +2165,16 @@ compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi @@ -3259,7 +3259,7 @@ Index: binutils-2.21/ltmain.sh func_quote_for_eval "$srcfile" qsrcfile=$func_quote_for_eval_result -@@ -1526,7 +2194,7 @@ +@@ -1526,7 +2194,7 @@ compiler." if test -z "$output_obj"; then # Place PIC objects in $objdir @@ -3268,7 +3268,7 @@ Index: binutils-2.21/ltmain.sh fi func_show_eval_locale "$command" \ -@@ -1573,11 +2241,11 @@ +@@ -1573,11 +2241,11 @@ compiler." command="$base_compile $qsrcfile $pic_flag" fi if test "$compiler_c_o" = yes; then @@ -3282,7 +3282,7 @@ Index: binutils-2.21/ltmain.sh func_show_eval_locale "$command" \ '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' -@@ -1622,13 +2290,13 @@ +@@ -1622,13 +2290,13 @@ compiler." } $opt_help || { @@ -3298,7 +3298,7 @@ Index: binutils-2.21/ltmain.sh "") # Generic help is extracted from the usage comments # at the start of this file. -@@ -1659,8 +2327,8 @@ +@@ -1659,8 +2327,8 @@ This mode accepts the following addition -o OUTPUT-FILE set the output file name to OUTPUT-FILE -no-suppress do not suppress compiler output for multiple passes @@ -3309,7 +3309,7 @@ Index: binutils-2.21/ltmain.sh -shared do not build a \`.o' file suitable for static linking -static only build a \`.o' file suitable for static linking -Wc,FLAG pass FLAG directly to the compiler -@@ -1804,7 +2472,7 @@ +@@ -1804,7 +2472,7 @@ Otherwise, only FILE itself is deleted u ;; *) @@ -3318,7 +3318,7 @@ Index: binutils-2.21/ltmain.sh ;; esac -@@ -1819,13 +2487,13 @@ +@@ -1819,13 +2487,13 @@ if $opt_help; then else { func_help noexit @@ -3334,7 +3334,7 @@ Index: binutils-2.21/ltmain.sh echo func_mode_help done -@@ -1854,13 +2522,16 @@ +@@ -1854,13 +2522,16 @@ func_mode_execute () func_fatal_help "you must specify a COMMAND" # Handle -dlopen flags immediately. @@ -3352,7 +3352,7 @@ Index: binutils-2.21/ltmain.sh # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "\`$lib' is not a valid libtool archive" -@@ -1882,7 +2553,7 @@ +@@ -1882,7 +2553,7 @@ func_mode_execute () dir="$func_dirname_result" if test -f "$dir/$objdir/$dlname"; then @@ -3361,7 +3361,7 @@ Index: binutils-2.21/ltmain.sh else if test ! -f "$dir/$dlname"; then func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" -@@ -1907,10 +2578,10 @@ +@@ -1907,10 +2578,10 @@ func_mode_execute () test -n "$absdir" && dir="$absdir" # Now add the directory to shlibpath_var. @@ -3375,7 +3375,7 @@ Index: binutils-2.21/ltmain.sh fi done -@@ -1939,8 +2610,7 @@ +@@ -1939,8 +2610,7 @@ func_mode_execute () ;; esac # Quote arguments (to preserve shell metacharacters). @@ -3385,7 +3385,7 @@ Index: binutils-2.21/ltmain.sh done if test "X$opt_dry_run" = Xfalse; then -@@ -1972,22 +2642,59 @@ +@@ -1972,22 +2642,59 @@ func_mode_execute () fi } @@ -3452,7 +3452,7 @@ Index: binutils-2.21/ltmain.sh for libdir in $libdirs; do if test -n "$finish_cmds"; then # Do each command in the finish commands. -@@ -1997,7 +2704,7 @@ +@@ -1997,7 +2704,7 @@ func_mode_finish () if test -n "$finish_eval"; then # Do the single finish_eval. eval cmds=\"$finish_eval\" @@ -3461,7 +3461,7 @@ Index: binutils-2.21/ltmain.sh $cmds" fi done -@@ -2006,53 +2713,55 @@ +@@ -2006,53 +2713,55 @@ func_mode_finish () # Exit here if they wanted silent mode. $opt_silent && exit $EXIT_SUCCESS @@ -3559,7 +3559,7 @@ Index: binutils-2.21/ltmain.sh # func_mode_install arg... -@@ -2077,7 +2786,7 @@ +@@ -2077,7 +2786,7 @@ func_mode_install () # The real first argument should be the name of the installation program. # Aesthetically quote it. func_quote_for_eval "$arg" @@ -3568,7 +3568,7 @@ Index: binutils-2.21/ltmain.sh install_shared_prog=$install_prog case " $install_prog " in *[\\\ /]cp\ *) install_cp=: ;; -@@ -2097,7 +2806,7 @@ +@@ -2097,7 +2806,7 @@ func_mode_install () do arg2= if test -n "$dest"; then @@ -3577,7 +3577,7 @@ Index: binutils-2.21/ltmain.sh dest=$arg continue fi -@@ -2135,11 +2844,11 @@ +@@ -2135,11 +2844,11 @@ func_mode_install () # Aesthetically quote the argument. func_quote_for_eval "$arg" @@ -3591,7 +3591,7 @@ Index: binutils-2.21/ltmain.sh done test -z "$install_prog" && \ -@@ -2151,7 +2860,7 @@ +@@ -2151,7 +2860,7 @@ func_mode_install () if test -n "$install_override_mode" && $no_mode; then if $install_cp; then :; else func_quote_for_eval "$install_override_mode" @@ -3600,7 +3600,7 @@ Index: binutils-2.21/ltmain.sh fi fi -@@ -2209,10 +2918,13 @@ +@@ -2209,10 +2918,13 @@ func_mode_install () case $file in *.$libext) # Do the static libraries later. @@ -3615,7 +3615,7 @@ Index: binutils-2.21/ltmain.sh # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "\`$file' is not a valid libtool archive" -@@ -2226,23 +2938,30 @@ +@@ -2226,23 +2938,30 @@ func_mode_install () if test "X$destdir" = "X$libdir"; then case "$current_libdirs " in *" $libdir "*) ;; @@ -3650,7 +3650,7 @@ Index: binutils-2.21/ltmain.sh # Don't allow the user to place us outside of our expected # location b/c this prevents finding dependent libraries that -@@ -2315,7 +3034,7 @@ +@@ -2315,7 +3034,7 @@ func_mode_install () func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' # Maybe install the static library, too. @@ -3659,7 +3659,7 @@ Index: binutils-2.21/ltmain.sh ;; *.lo) -@@ -2503,7 +3222,7 @@ +@@ -2503,7 +3222,7 @@ func_mode_install () test -n "$future_libdirs" && \ func_warning "remember to run \`$progname --finish$future_libdirs'" @@ -3668,7 +3668,7 @@ Index: binutils-2.21/ltmain.sh # Maybe just do a dry run. $opt_dry_run && current_libdirs=" -n$current_libdirs" exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' -@@ -2512,7 +3231,7 @@ +@@ -2512,7 +3231,7 @@ func_mode_install () fi } @@ -3677,7 +3677,7 @@ Index: binutils-2.21/ltmain.sh # func_generate_dlsyms outputname originator pic_p -@@ -2559,6 +3278,18 @@ +@@ -2559,6 +3278,18 @@ extern \"C\" { #pragma GCC diagnostic ignored \"-Wstrict-prototypes\" #endif @@ -3696,7 +3696,7 @@ Index: binutils-2.21/ltmain.sh /* External symbol declarations for the compiler. */\ " -@@ -2570,21 +3301,22 @@ +@@ -2570,21 +3301,22 @@ extern \"C\" { # Add our own program objects to the symbol list. progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP` for progfile in $progfiles; do @@ -3725,7 +3725,7 @@ Index: binutils-2.21/ltmain.sh } fi -@@ -2593,23 +3325,23 @@ +@@ -2593,23 +3325,23 @@ extern \"C\" { export_symbols="$output_objdir/$outputname.exp" $opt_dry_run || { $RM $export_symbols @@ -3757,7 +3757,7 @@ Index: binutils-2.21/ltmain.sh ;; esac } -@@ -2620,10 +3352,52 @@ +@@ -2620,10 +3352,52 @@ extern \"C\" { func_verbose "extracting global C symbols from \`$dlprefile'" func_basename "$dlprefile" name="$func_basename_result" @@ -3814,7 +3814,7 @@ Index: binutils-2.21/ltmain.sh done $opt_dry_run || { -@@ -2661,26 +3435,9 @@ +@@ -2661,26 +3435,9 @@ typedef struct { const char *name; void *address; } lt_dlsymlist; @@ -3843,7 +3843,7 @@ Index: binutils-2.21/ltmain.sh lt_${my_prefix}_LTX_preloaded_symbols[] = {\ { \"$my_originator\", (void *) 0 }," -@@ -2736,7 +3493,7 @@ +@@ -2736,7 +3493,7 @@ static const void *lt_preloaded_setup() for arg in $LTCFLAGS; do case $arg in -pie | -fpie | -fPIE) ;; @@ -3852,7 +3852,7 @@ Index: binutils-2.21/ltmain.sh esac done -@@ -2796,9 +3553,11 @@ +@@ -2796,9 +3553,11 @@ func_win32_libid () win32_libid_type="x86 archive import" ;; *ar\ archive*) # could be an import, or static @@ -3867,7 +3867,7 @@ Index: binutils-2.21/ltmain.sh $SED -n -e ' 1,100{ / I /{ -@@ -2827,6 +3586,131 @@ +@@ -2827,6 +3586,131 @@ func_win32_libid () $ECHO "$win32_libid_type" } @@ -3999,7 +3999,7 @@ Index: binutils-2.21/ltmain.sh # func_extract_an_archive dir oldlib -@@ -2917,7 +3801,7 @@ +@@ -2917,7 +3801,7 @@ func_extract_archives () darwin_file= darwin_files= for darwin_file in $darwin_filelist; do @@ -4008,7 +4008,7 @@ Index: binutils-2.21/ltmain.sh $LIPO -create -output "$darwin_file" $darwin_files done # $darwin_filelist $RM -rf unfat-$$ -@@ -2932,7 +3816,7 @@ +@@ -2932,7 +3816,7 @@ func_extract_archives () func_extract_an_archive "$my_xdir" "$my_xabs" ;; esac @@ -4017,7 +4017,7 @@ Index: binutils-2.21/ltmain.sh done func_extract_archives_result="$my_oldobjs" -@@ -3014,7 +3898,110 @@ +@@ -3014,7 +3898,110 @@ func_fallback_echo () _LTECHO_EOF' } ECHO=\"$qECHO\" @@ -4129,7 +4129,7 @@ Index: binutils-2.21/ltmain.sh # Find the directory that this script lives in. thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\` -@@ -3078,7 +4065,7 @@ +@@ -3078,7 +4065,7 @@ _LTECHO_EOF' # relink executable if necessary if test -n \"\$relink_command\"; then @@ -4138,7 +4138,7 @@ Index: binutils-2.21/ltmain.sh else $ECHO \"\$relink_command_output\" >&2 $RM \"\$progdir/\$file\" -@@ -3102,6 +4089,18 @@ +@@ -3102,6 +4089,18 @@ _LTECHO_EOF' if test -f \"\$progdir/\$program\"; then" @@ -4157,7 +4157,7 @@ Index: binutils-2.21/ltmain.sh # Export our shlibpath_var if we have one. if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then $ECHO "\ -@@ -3116,35 +4115,10 @@ +@@ -3116,35 +4115,10 @@ _LTECHO_EOF' " fi @@ -4194,7 +4194,7 @@ Index: binutils-2.21/ltmain.sh fi else # The program doesn't exist. -@@ -3158,166 +4132,6 @@ +@@ -3158,166 +4132,6 @@ fi\ } @@ -4361,7 +4361,7 @@ Index: binutils-2.21/ltmain.sh # func_emit_cwrapperexe_src # emit the source code for a wrapper executable on stdout # Must ONLY be called from within func_mode_link because -@@ -3334,10 +4148,6 @@ +@@ -3334,10 +4148,6 @@ func_emit_cwrapperexe_src () This wrapper executable should never be moved out of the build directory. If it is, it will not operate correctly. @@ -4372,7 +4372,7 @@ Index: binutils-2.21/ltmain.sh */ EOF cat <<"EOF" -@@ -3462,22 +4272,13 @@ +@@ -3462,22 +4272,13 @@ int setenv (const char *, const char *, if (stale) { free ((void *) stale); stale = 0; } \ } while (0) @@ -4399,7 +4399,7 @@ Index: binutils-2.21/ltmain.sh void *xmalloc (size_t num); char *xstrdup (const char *string); -@@ -3487,7 +4288,10 @@ +@@ -3487,7 +4288,10 @@ char *chase_symlinks (const char *pathsp int make_executable (const char *path); int check_executable (const char *path); char *strendzap (char *str, const char *pat); @@ -4411,7 +4411,7 @@ Index: binutils-2.21/ltmain.sh void lt_setenv (const char *name, const char *value); char *lt_extend_str (const char *orig_value, const char *add, int to_end); void lt_update_exe_path (const char *name, const char *value); -@@ -3497,14 +4301,14 @@ +@@ -3497,14 +4301,14 @@ void lt_dump_script (FILE *f); EOF cat </dev/null | -@@ -6885,10 +7816,10 @@ +@@ -6885,10 +7816,10 @@ EOF *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";; esac done @@ -6018,7 +6018,7 @@ Index: binutils-2.21/ltmain.sh a_deplib="" break 2 fi -@@ -6913,7 +7844,7 @@ +@@ -6913,7 +7844,7 @@ EOF ;; *) # Add a -L argument. @@ -6027,7 +6027,7 @@ Index: binutils-2.21/ltmain.sh ;; esac done # Gone through all deplibs. -@@ -6929,20 +7860,20 @@ +@@ -6929,20 +7860,20 @@ EOF if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $a_deplib "*) @@ -6051,7 +6051,7 @@ Index: binutils-2.21/ltmain.sh a_deplib="" break 2 fi -@@ -6967,7 +7898,7 @@ +@@ -6967,7 +7898,7 @@ EOF ;; *) # Add a -L argument. @@ -6060,7 +6060,7 @@ Index: binutils-2.21/ltmain.sh ;; esac done # Gone through all deplibs. -@@ -7071,7 +8002,7 @@ +@@ -7071,7 +8002,7 @@ EOF *) case " $deplibs " in *" -L$path/$objdir "*) @@ -6069,7 +6069,7 @@ Index: binutils-2.21/ltmain.sh esac ;; esac -@@ -7081,10 +8012,10 @@ +@@ -7081,10 +8012,10 @@ EOF -L*) case " $new_libs " in *" $deplib "*) ;; @@ -6082,7 +6082,7 @@ Index: binutils-2.21/ltmain.sh esac done deplibs="$new_libs" -@@ -7101,10 +8032,12 @@ +@@ -7101,9 +8032,13 @@ EOF hardcode_libdirs= dep_rpath= rpath="$finalize_rpath" @@ -6090,13 +6090,14 @@ Index: binutils-2.21/ltmain.sh + test "$opt_mode" != relink && rpath="$compile_rpath$rpath" for libdir in $rpath; do if test -n "$hardcode_libdir_flag_spec"; then ++ func_replace_sysroot "$libdir" ++ libdir=$func_replace_sysroot_result ++ func_stripname '=' '' "$libdir" ++ libdir=$func_stripname_result if test -n "$hardcode_libdir_separator"; then -+ func_replace_sysroot "$libdir" -+ libdir=$func_replace_sysroot_result if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" - else -@@ -7113,18 +8046,18 @@ +@@ -7113,18 +8048,18 @@ EOF *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) @@ -6119,7 +6120,7 @@ Index: binutils-2.21/ltmain.sh esac fi done -@@ -7133,40 +8066,38 @@ +@@ -7133,40 +8068,38 @@ EOF test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" if test -n "$hardcode_libdir_flag_spec_ld"; then @@ -6169,7 +6170,7 @@ Index: binutils-2.21/ltmain.sh else soname="$realname" fi -@@ -7178,7 +8109,7 @@ +@@ -7178,7 +8111,7 @@ EOF linknames= for link do @@ -6178,7 +6179,7 @@ Index: binutils-2.21/ltmain.sh done # Use standard objects if they are pic -@@ -7189,7 +8120,7 @@ +@@ -7189,7 +8122,7 @@ EOF if test -n "$export_symbols" && test -n "$include_expsyms"; then $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" export_symbols="$output_objdir/$libname.uexp" @@ -6187,7 +6188,7 @@ Index: binutils-2.21/ltmain.sh fi orig_export_symbols= -@@ -7220,13 +8151,45 @@ +@@ -7220,13 +8153,45 @@ EOF $opt_dry_run || $RM $export_symbols cmds=$export_symbols_cmds save_ifs="$IFS"; IFS='~' @@ -6238,7 +6239,7 @@ Index: binutils-2.21/ltmain.sh skipped_export=false else # The command line is too long to execute in one step. -@@ -7248,7 +8211,7 @@ +@@ -7248,7 +8213,7 @@ EOF if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols="$export_symbols" test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" @@ -6247,7 +6248,7 @@ Index: binutils-2.21/ltmain.sh fi if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then -@@ -7260,7 +8223,7 @@ +@@ -7260,7 +8225,7 @@ EOF # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter @@ -6256,7 +6257,7 @@ Index: binutils-2.21/ltmain.sh export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi -@@ -7270,7 +8233,7 @@ +@@ -7270,7 +8235,7 @@ EOF case " $convenience " in *" $test_deplib "*) ;; *) @@ -6265,7 +6266,7 @@ Index: binutils-2.21/ltmain.sh ;; esac done -@@ -7286,43 +8249,43 @@ +@@ -7286,43 +8251,43 @@ EOF fi if test -n "$whole_archive_flag_spec"; then save_libobjs=$libobjs @@ -6320,7 +6321,7 @@ Index: binutils-2.21/ltmain.sh cmds=$archive_cmds fi fi -@@ -7366,10 +8329,13 @@ +@@ -7366,10 +8331,13 @@ EOF echo 'INPUT (' > $output for obj in $save_libobjs do @@ -6336,7 +6337,7 @@ Index: binutils-2.21/ltmain.sh elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then output=${output_objdir}/${output_la}.lnk func_verbose "creating linker input file list: $output" -@@ -7383,15 +8349,17 @@ +@@ -7383,15 +8351,17 @@ EOF fi for obj do @@ -6358,7 +6359,7 @@ Index: binutils-2.21/ltmain.sh func_len " $test_cmds" len0=$func_len_result len=$len0 -@@ -7411,12 +8379,12 @@ +@@ -7411,12 +8381,12 @@ EOF if test "$k" -eq 1 ; then # The first file doesn't have a previous command to add. reload_objs=$objlist @@ -6373,7 +6374,7 @@ Index: binutils-2.21/ltmain.sh fi last_robj=$output_objdir/$output_la-${k}.$objext func_arith $k + 1 -@@ -7433,11 +8401,11 @@ +@@ -7433,11 +8403,11 @@ EOF # files will link in the last one created. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ reload_objs="$objlist $last_robj" @@ -6388,7 +6389,7 @@ Index: binutils-2.21/ltmain.sh else output= -@@ -7450,9 +8418,9 @@ +@@ -7450,9 +8420,9 @@ EOF libobjs=$output # Append the command to create the export file. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ @@ -6400,7 +6401,7 @@ Index: binutils-2.21/ltmain.sh fi fi -@@ -7471,7 +8439,7 @@ +@@ -7471,7 +8441,7 @@ EOF lt_exit=$? # Restore the uninstalled library and exit @@ -6409,7 +6410,7 @@ Index: binutils-2.21/ltmain.sh ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) -@@ -7492,7 +8460,7 @@ +@@ -7492,7 +8462,7 @@ EOF if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols="$export_symbols" test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" @@ -6418,7 +6419,7 @@ Index: binutils-2.21/ltmain.sh fi if test -n "$orig_export_symbols"; then -@@ -7504,7 +8472,7 @@ +@@ -7504,7 +8474,7 @@ EOF # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter @@ -6427,7 +6428,7 @@ Index: binutils-2.21/ltmain.sh export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi -@@ -7515,7 +8483,7 @@ +@@ -7515,7 +8485,7 @@ EOF output=$save_output if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then @@ -6436,7 +6437,7 @@ Index: binutils-2.21/ltmain.sh test "X$libobjs" = "X " && libobjs= fi # Expand the library linking commands again to reset the -@@ -7539,23 +8507,23 @@ +@@ -7539,23 +8509,23 @@ EOF if test -n "$delfiles"; then # Append the command to remove temporary files to $cmds. @@ -6464,7 +6465,7 @@ Index: binutils-2.21/ltmain.sh $opt_silent || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" -@@ -7564,7 +8532,7 @@ +@@ -7564,7 +8534,7 @@ EOF lt_exit=$? # Restore the uninstalled library and exit @@ -6473,7 +6474,7 @@ Index: binutils-2.21/ltmain.sh ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) -@@ -7576,8 +8544,8 @@ +@@ -7576,8 +8546,8 @@ EOF IFS="$save_ifs" # Restore the uninstalled library and exit @@ -6484,7 +6485,7 @@ Index: binutils-2.21/ltmain.sh if test -n "$convenience"; then if test -z "$whole_archive_flag_spec"; then -@@ -7656,17 +8624,20 @@ +@@ -7656,17 +8626,20 @@ EOF if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then @@ -6507,7 +6508,7 @@ Index: binutils-2.21/ltmain.sh # Create the old-style object. reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test -@@ -7690,7 +8661,7 @@ +@@ -7690,7 +8663,7 @@ EOF # Create an invalid libtool object if no PIC, so that we don't # accidentally link it into a program. # $show "echo timestamp > $libobj" @@ -6516,7 +6517,7 @@ Index: binutils-2.21/ltmain.sh exit $EXIT_SUCCESS fi -@@ -7740,8 +8711,8 @@ +@@ -7740,8 +8713,8 @@ EOF if test "$tagname" = CXX ; then case ${MACOSX_DEPLOYMENT_TARGET-10.0} in 10.[0123]) @@ -6527,7 +6528,7 @@ Index: binutils-2.21/ltmain.sh ;; esac fi -@@ -7761,7 +8732,7 @@ +@@ -7761,7 +8734,7 @@ EOF *) case " $compile_deplibs " in *" -L$path/$objdir "*) @@ -6536,7 +6537,7 @@ Index: binutils-2.21/ltmain.sh esac ;; esac -@@ -7771,17 +8742,17 @@ +@@ -7771,17 +8744,17 @@ EOF -L*) case " $new_libs " in *" $deplib "*) ;; @@ -6558,7 +6559,7 @@ Index: binutils-2.21/ltmain.sh if test -n "$rpath$xrpath"; then # If the user specified any rpath flags, then add them. -@@ -7789,7 +8760,7 @@ +@@ -7789,7 +8762,7 @@ EOF # This is the magic to use -rpath. case "$finalize_rpath " in *" $libdir "*) ;; @@ -6567,7 +6568,18 @@ Index: binutils-2.21/ltmain.sh esac done fi -@@ -7808,18 +8779,18 @@ +@@ -7799,6 +8772,10 @@ EOF + hardcode_libdirs= + for libdir in $compile_rpath $finalize_rpath; do + if test -n "$hardcode_libdir_flag_spec"; then ++ func_replace_sysroot "$libdir" ++ libdir=$func_replace_sysroot_result ++ func_stripname '=' '' "$libdir" ++ libdir=$func_stripname_result + if test -n "$hardcode_libdir_separator"; then + if test -z "$hardcode_libdirs"; then + hardcode_libdirs="$libdir" +@@ -7808,18 +8785,18 @@ EOF *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) @@ -6590,7 +6602,7 @@ Index: binutils-2.21/ltmain.sh esac fi case $host in -@@ -7828,12 +8799,12 @@ +@@ -7828,12 +8805,12 @@ EOF case :$dllsearchpath: in *":$libdir:"*) ;; ::) dllsearchpath=$libdir;; @@ -6605,7 +6617,7 @@ Index: binutils-2.21/ltmain.sh esac ;; esac -@@ -7842,7 +8813,7 @@ +@@ -7842,7 +8819,7 @@ EOF if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" @@ -6614,7 +6626,7 @@ Index: binutils-2.21/ltmain.sh fi compile_rpath="$rpath" -@@ -7859,18 +8830,18 @@ +@@ -7859,18 +8836,18 @@ EOF *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) @@ -6637,7 +6649,7 @@ Index: binutils-2.21/ltmain.sh esac fi done -@@ -7878,7 +8849,7 @@ +@@ -7878,7 +8855,7 @@ EOF if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" @@ -6646,7 +6658,7 @@ Index: binutils-2.21/ltmain.sh fi finalize_rpath="$rpath" -@@ -7921,6 +8892,12 @@ +@@ -7921,6 +8898,12 @@ EOF exit_status=0 func_show_eval "$link_command" 'exit_status=$?' @@ -6659,7 +6671,7 @@ Index: binutils-2.21/ltmain.sh # Delete the generated files. if test -f "$output_objdir/${outputname}S.${objext}"; then func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"' -@@ -7943,7 +8920,7 @@ +@@ -7943,7 +8926,7 @@ EOF # We should set the runpath_var. rpath= for dir in $perm_rpath; do @@ -6668,7 +6680,7 @@ Index: binutils-2.21/ltmain.sh done compile_var="$runpath_var=\"$rpath\$$runpath_var\" " fi -@@ -7951,7 +8928,7 @@ +@@ -7951,7 +8934,7 @@ EOF # We should set the runpath_var. rpath= for dir in $finalize_perm_rpath; do @@ -6677,7 +6689,7 @@ Index: binutils-2.21/ltmain.sh done finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " fi -@@ -7966,6 +8943,13 @@ +@@ -7966,6 +8949,13 @@ EOF $opt_dry_run || $RM $output # Link the executable and exit func_show_eval "$link_command" 'exit $?' @@ -6691,7 +6703,7 @@ Index: binutils-2.21/ltmain.sh exit $EXIT_SUCCESS fi -@@ -7999,6 +8983,12 @@ +@@ -7999,6 +8989,12 @@ EOF func_show_eval "$link_command" 'exit $?' @@ -6704,7 +6716,7 @@ Index: binutils-2.21/ltmain.sh # Now create the wrapper script. func_verbose "creating $output" -@@ -8096,7 +9086,7 @@ +@@ -8096,7 +9092,7 @@ EOF else oldobjs="$old_deplibs $non_pic_objects" if test "$preload" = yes && test -f "$symfileobj"; then @@ -6713,7 +6725,7 @@ Index: binutils-2.21/ltmain.sh fi fi addlibs="$old_convenience" -@@ -8104,10 +9094,10 @@ +@@ -8104,10 +9100,10 @@ EOF if test -n "$addlibs"; then gentop="$output_objdir/${outputname}x" @@ -6726,7 +6738,7 @@ Index: binutils-2.21/ltmain.sh fi # Do each command in the archive commands. -@@ -8118,10 +9108,10 @@ +@@ -8118,10 +9114,10 @@ EOF # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop="$output_objdir/${outputname}x" @@ -6739,7 +6751,7 @@ Index: binutils-2.21/ltmain.sh fi # POSIX demands no paths to be encoded in archives. We have -@@ -8139,7 +9129,7 @@ +@@ -8139,7 +9135,7 @@ EOF else echo "copying selected object files to avoid basename conflicts..." gentop="$output_objdir/${outputname}x" @@ -6748,7 +6760,7 @@ Index: binutils-2.21/ltmain.sh func_mkdir_p "$gentop" save_oldobjs=$oldobjs oldobjs= -@@ -8163,18 +9153,28 @@ +@@ -8163,18 +9159,28 @@ EOF esac done func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" @@ -6780,7 +6792,7 @@ Index: binutils-2.21/ltmain.sh else # the command line is too long to link in one step, link in parts func_verbose "using piecewise archive linking..." -@@ -8189,7 +9189,7 @@ +@@ -8189,7 +9195,7 @@ EOF do last_oldobj=$obj done @@ -6789,7 +6801,7 @@ Index: binutils-2.21/ltmain.sh func_len " $test_cmds" len0=$func_len_result len=$len0 -@@ -8208,7 +9208,7 @@ +@@ -8208,7 +9214,7 @@ EOF RANLIB=$save_RANLIB fi test -z "$concat_cmds" || concat_cmds=$concat_cmds~ @@ -6798,7 +6810,7 @@ Index: binutils-2.21/ltmain.sh objlist= len=$len0 fi -@@ -8216,9 +9216,9 @@ +@@ -8216,9 +9222,9 @@ EOF RANLIB=$save_RANLIB oldobjs=$objlist if test "X$oldobjs" = "X" ; then @@ -6810,7 +6822,7 @@ Index: binutils-2.21/ltmain.sh fi fi fi -@@ -8268,12 +9268,23 @@ +@@ -8268,12 +9274,23 @@ EOF *.la) func_basename "$deplib" name="$func_basename_result" @@ -6837,7 +6849,7 @@ Index: binutils-2.21/ltmain.sh esac done dependency_libs="$newdependency_libs" -@@ -8284,12 +9295,14 @@ +@@ -8284,12 +9301,14 @@ EOF *.la) func_basename "$lib" name="$func_basename_result" @@ -6855,7 +6867,7 @@ Index: binutils-2.21/ltmain.sh esac done dlfiles="$newdlfiles" -@@ -8303,10 +9316,11 @@ +@@ -8303,10 +9322,11 @@ EOF # the library: func_basename "$lib" name="$func_basename_result" @@ -6869,7 +6881,7 @@ Index: binutils-2.21/ltmain.sh ;; esac done -@@ -8318,7 +9332,7 @@ +@@ -8318,7 +9338,7 @@ EOF [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac @@ -6878,7 +6890,7 @@ Index: binutils-2.21/ltmain.sh done dlfiles="$newdlfiles" newdlprefiles= -@@ -8327,7 +9341,7 @@ +@@ -8327,7 +9347,7 @@ EOF [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac @@ -6887,7 +6899,7 @@ Index: binutils-2.21/ltmain.sh done dlprefiles="$newdlprefiles" fi -@@ -8412,7 +9426,7 @@ +@@ -8412,7 +9432,7 @@ relink_command=\"$relink_command\"" exit $EXIT_SUCCESS } @@ -6896,7 +6908,7 @@ Index: binutils-2.21/ltmain.sh func_mode_link ${1+"$@"} -@@ -8432,9 +9446,9 @@ +@@ -8432,9 +9452,9 @@ func_mode_uninstall () for arg do case $arg in @@ -6909,7 +6921,7 @@ Index: binutils-2.21/ltmain.sh esac done -@@ -8443,24 +9457,23 @@ +@@ -8443,24 +9463,23 @@ func_mode_uninstall () rmdirs= @@ -6941,7 +6953,7 @@ Index: binutils-2.21/ltmain.sh esac fi -@@ -8486,18 +9499,17 @@ +@@ -8486,18 +9505,17 @@ func_mode_uninstall () # Delete the libtool libraries and symlinks. for n in $library_names; do @@ -6966,7 +6978,7 @@ Index: binutils-2.21/ltmain.sh ;; uninstall) if test -n "$library_names"; then -@@ -8525,19 +9537,19 @@ +@@ -8525,19 +9543,19 @@ func_mode_uninstall () # Add PIC object to the list of files to remove. if test -n "$pic_object" && test "$pic_object" != none; then @@ -6989,7 +7001,7 @@ Index: binutils-2.21/ltmain.sh noexename=$name case $file in *.exe) -@@ -8547,7 +9559,7 @@ +@@ -8547,7 +9565,7 @@ func_mode_uninstall () noexename=$func_stripname_result # $file with .exe has already been added to rmfiles, # add $file without .exe @@ -6998,7 +7010,7 @@ Index: binutils-2.21/ltmain.sh ;; esac # Do a test to see if this is a libtool program. -@@ -8556,7 +9568,7 @@ +@@ -8556,7 +9574,7 @@ func_mode_uninstall () func_ltwrapper_scriptname "$file" relink_command= func_source $func_ltwrapper_scriptname_result @@ -7007,7 +7019,7 @@ Index: binutils-2.21/ltmain.sh else relink_command= func_source $dir/$noexename -@@ -8564,12 +9576,12 @@ +@@ -8564,12 +9582,12 @@ func_mode_uninstall () # note $name still contains .exe if it was in $file originally # as does the version of $file that was added into $rmfiles @@ -7023,7 +7035,7 @@ Index: binutils-2.21/ltmain.sh fi fi fi -@@ -8577,7 +9589,6 @@ +@@ -8577,7 +9595,6 @@ func_mode_uninstall () esac func_show_eval "$RM $rmfiles" 'exit_status=1' done @@ -7031,7 +7043,7 @@ Index: binutils-2.21/ltmain.sh # Try to remove the ${objdir}s in the directories where we deleted files for dir in $rmdirs; do -@@ -8589,16 +9600,16 @@ +@@ -8589,16 +9606,16 @@ func_mode_uninstall () exit $exit_status } @@ -7053,8 +7065,8 @@ Index: binutils-2.21/ltmain.sh eval exec "$exec_cmd" Index: binutils-2.21/ltoptions.m4 =================================================================== ---- binutils-2.21.orig/ltoptions.m4 2010-01-09 13:11:32.000000000 -0800 -+++ binutils-2.21/ltoptions.m4 2011-01-07 10:49:16.406101000 -0800 +--- binutils-2.21.orig/ltoptions.m4 ++++ binutils-2.21/ltoptions.m4 @@ -8,7 +8,7 @@ # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. @@ -7066,8 +7078,8 @@ Index: binutils-2.21/ltoptions.m4 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) Index: binutils-2.21/ltversion.m4 =================================================================== ---- binutils-2.21.orig/ltversion.m4 2010-01-09 13:11:32.000000000 -0800 -+++ binutils-2.21/ltversion.m4 2011-01-07 10:49:16.406101000 -0800 +--- binutils-2.21.orig/ltversion.m4 ++++ binutils-2.21/ltversion.m4 @@ -7,17 +7,17 @@ # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. @@ -7094,8 +7106,8 @@ Index: binutils-2.21/ltversion.m4 ]) Index: binutils-2.21/lt~obsolete.m4 =================================================================== ---- binutils-2.21.orig/lt~obsolete.m4 2010-01-09 13:11:32.000000000 -0800 -+++ binutils-2.21/lt~obsolete.m4 2011-01-07 10:49:16.406101000 -0800 +--- binutils-2.21.orig/lt~obsolete.m4 ++++ binutils-2.21/lt~obsolete.m4 @@ -7,7 +7,7 @@ # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. @@ -7107,9 +7119,9 @@ Index: binutils-2.21/lt~obsolete.m4 # Index: binutils-2.21/configure =================================================================== ---- binutils-2.21.orig/configure 2011-01-07 10:49:16.006101000 -0800 -+++ binutils-2.21/configure 2011-01-07 10:49:17.906101000 -0800 -@@ -2670,7 +2670,7 @@ +--- binutils-2.21.orig/configure ++++ binutils-2.21/configure +@@ -2670,7 +2670,7 @@ host_libs="intl mmalloc libiberty opcode # binutils, gas and ld appear in that order because it makes sense to run # "make check" in that particular order. # If --enable-gold is used, "gold" may replace "ld". @@ -7118,7 +7130,7 @@ Index: binutils-2.21/configure # libgcj represents the runtime libraries only used by gcj. libgcj="target-libffi \ -@@ -3148,7 +3148,7 @@ +@@ -3148,7 +3148,7 @@ case "${target}" in am33_2.0-*-linux*) noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" ;; @@ -7127,7 +7139,7 @@ Index: binutils-2.21/configure noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" ;; sh*-*-pe|mips*-*-pe|*arm-wince-pe) -@@ -3487,7 +3487,7 @@ +@@ -3487,7 +3487,7 @@ case "${target}" in romp-*-*) noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}" ;; @@ -7136,7 +7148,7 @@ Index: binutils-2.21/configure case "${host}" in i[3456789]86-*-vsta) ;; # don't add gprof back in i[3456789]86-*-go32*) ;; # don't add gprof back in -@@ -7597,7 +7597,7 @@ +@@ -7597,7 +7597,7 @@ case " $build_configdirs " in # For an installed makeinfo, we require it to be from texinfo 4.7 or # higher, else we use the "missing" dummy. if ${MAKEINFO} --version \ @@ -7147,9 +7159,9 @@ Index: binutils-2.21/configure MAKEINFO="$MISSING makeinfo" Index: binutils-2.21/bfd/configure =================================================================== ---- binutils-2.21.orig/bfd/configure 2010-12-08 00:37:34.000000000 -0800 -+++ binutils-2.21/bfd/configure 2011-01-07 11:25:57.156101002 -0800 -@@ -667,6 +667,9 @@ +--- binutils-2.21.orig/bfd/configure ++++ binutils-2.21/bfd/configure +@@ -667,6 +667,9 @@ OTOOL LIPO NMEDIT DSYMUTIL @@ -7159,7 +7171,7 @@ Index: binutils-2.21/bfd/configure OBJDUMP LN_S NM -@@ -779,6 +782,7 @@ +@@ -779,6 +782,7 @@ enable_static with_pic enable_fast_install with_gnu_ld @@ -7167,7 +7179,7 @@ Index: binutils-2.21/bfd/configure enable_libtool_lock enable_plugins enable_largefile -@@ -1453,6 +1457,8 @@ +@@ -1453,6 +1457,8 @@ Optional Packages: --with-pic try to use only PIC/non-PIC objects [default=use both] --with-gnu-ld assume the C compiler uses GNU ld [default=no] @@ -7176,7 +7188,7 @@ Index: binutils-2.21/bfd/configure --with-mmap try using mmap for BFD input files if available --with-separate-debug-dir=DIR Look for global separate debug info in DIR -@@ -5383,8 +5389,8 @@ +@@ -5383,8 +5389,8 @@ esac @@ -7187,7 +7199,7 @@ Index: binutils-2.21/bfd/configure -@@ -5424,7 +5430,7 @@ +@@ -5424,7 +5430,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 $as_echo_n "checking how to print strings... " >&6; } # Test print first, because it will be a builtin if present. @@ -7196,7 +7208,7 @@ Index: binutils-2.21/bfd/configure test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='print -r --' elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then -@@ -6110,8 +6116,8 @@ +@@ -6110,8 +6116,8 @@ $as_echo_n "checking whether the shell u # Try some XSI features xsi_shell=no ( _lt_dummy="a/b/c" @@ -7207,7 +7219,7 @@ Index: binutils-2.21/bfd/configure && eval 'test $(( 1 + 1 )) -eq 2 \ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ && xsi_shell=yes -@@ -6160,6 +6166,80 @@ +@@ -6160,6 +6166,80 @@ esac @@ -7288,7 +7300,7 @@ Index: binutils-2.21/bfd/configure { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 $as_echo_n "checking for $LD option to reload object files... " >&6; } if test "${lt_cv_ld_reload_flag+set}" = set; then : -@@ -6176,6 +6256,11 @@ +@@ -6176,6 +6256,11 @@ case $reload_flag in esac reload_cmds='$LD$reload_flag -o $output$reload_objs' case $host_os in @@ -7300,7 +7312,7 @@ Index: binutils-2.21/bfd/configure darwin*) if test "$GCC" = yes; then reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' -@@ -6344,7 +6429,8 @@ +@@ -6344,7 +6429,8 @@ mingw* | pw32*) lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else @@ -7310,7 +7322,7 @@ Index: binutils-2.21/bfd/configure lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; -@@ -6498,6 +6584,21 @@ +@@ -6498,6 +6584,21 @@ esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 $as_echo "$lt_cv_deplibs_check_method" >&6; } @@ -7332,7 +7344,7 @@ Index: binutils-2.21/bfd/configure file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown -@@ -6513,9 +6614,162 @@ +@@ -6513,9 +6614,162 @@ test -z "$deplibs_check_method" && depli @@ -7497,7 +7509,7 @@ Index: binutils-2.21/bfd/configure { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_AR+set}" = set; then : -@@ -6531,7 +6785,7 @@ +@@ -6531,7 +6785,7 @@ do test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then @@ -7506,7 +7518,7 @@ Index: binutils-2.21/bfd/configure $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi -@@ -6551,11 +6805,15 @@ +@@ -6551,11 +6805,15 @@ $as_echo "no" >&6; } fi @@ -7525,7 +7537,7 @@ Index: binutils-2.21/bfd/configure { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : -@@ -6571,7 +6829,7 @@ +@@ -6571,7 +6829,7 @@ do test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then @@ -7534,7 +7546,7 @@ Index: binutils-2.21/bfd/configure $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi -@@ -6590,6 +6848,10 @@ +@@ -6590,6 +6848,10 @@ else $as_echo "no" >&6; } fi @@ -7545,7 +7557,7 @@ Index: binutils-2.21/bfd/configure if test "x$ac_ct_AR" = x; then AR="false" else -@@ -6601,16 +6863,72 @@ +@@ -6601,16 +6863,72 @@ ac_tool_warned=yes ;; esac AR=$ac_ct_AR fi @@ -7622,7 +7634,7 @@ Index: binutils-2.21/bfd/configure -@@ -6952,8 +7270,8 @@ +@@ -6952,8 +7270,8 @@ esac lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address @@ -7633,7 +7645,7 @@ Index: binutils-2.21/bfd/configure # Handle CRLF in mingw tool chain opt_cr= -@@ -6989,6 +7307,7 @@ +@@ -6989,6 +7307,7 @@ for ac_symprfx in "" "_"; do else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi @@ -7641,7 +7653,7 @@ Index: binutils-2.21/bfd/configure # Check to see that the pipe works correctly. pipe_works=no -@@ -7030,6 +7349,18 @@ +@@ -7030,6 +7349,18 @@ _LT_EOF if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext @@ -7660,7 +7672,7 @@ Index: binutils-2.21/bfd/configure #ifdef __cplusplus extern "C" { #endif -@@ -7041,7 +7372,7 @@ +@@ -7041,7 +7372,7 @@ _LT_EOF cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ @@ -7669,7 +7681,7 @@ Index: binutils-2.21/bfd/configure const char *name; void *address; } -@@ -7067,8 +7398,8 @@ +@@ -7067,8 +7398,8 @@ static const void *lt_preloaded_setup() _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext @@ -7680,7 +7692,7 @@ Index: binutils-2.21/bfd/configure LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 -@@ -7078,8 +7409,8 @@ +@@ -7078,8 +7409,8 @@ _LT_EOF test $ac_status = 0; } && test -s conftest${ac_exeext}; then pipe_works=yes fi @@ -7691,7 +7703,7 @@ Index: binutils-2.21/bfd/configure else echo "cannot find nm_test_func in $nlist" >&5 fi -@@ -7116,6 +7447,20 @@ +@@ -7116,6 +7447,20 @@ else $as_echo "ok" >&6; } fi @@ -7712,7 +7724,7 @@ Index: binutils-2.21/bfd/configure -@@ -7135,6 +7480,41 @@ +@@ -7135,6 +7480,41 @@ fi @@ -7754,7 +7766,7 @@ Index: binutils-2.21/bfd/configure # Check whether --enable-libtool-lock was given. -@@ -7330,6 +7710,123 @@ +@@ -7330,6 +7710,123 @@ esac need_locks="$enable_libtool_lock" @@ -7878,7 +7890,7 @@ Index: binutils-2.21/bfd/configure case $host_os in rhapsody* | darwin*) -@@ -7893,6 +8390,8 @@ +@@ -7893,6 +8390,8 @@ _LT_EOF $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 echo "$AR cru libconftest.a conftest.o" >&5 $AR cru libconftest.a conftest.o 2>&5 @@ -7887,7 +7899,7 @@ Index: binutils-2.21/bfd/configure cat > conftest.c << _LT_EOF int main() { return 0;} _LT_EOF -@@ -8057,7 +8556,8 @@ +@@ -8057,7 +8556,8 @@ fi LIBTOOL_DEPS="$ltmain" # Always use our own libtool. @@ -7897,7 +7909,7 @@ Index: binutils-2.21/bfd/configure -@@ -8146,7 +8646,7 @@ +@@ -8146,7 +8646,7 @@ aix3*) esac # Global variables: @@ -7906,7 +7918,7 @@ Index: binutils-2.21/bfd/configure can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, -@@ -8444,8 +8944,6 @@ +@@ -8444,8 +8944,6 @@ fi lt_prog_compiler_pic= lt_prog_compiler_static= @@ -7915,7 +7927,7 @@ Index: binutils-2.21/bfd/configure if test "$GCC" = yes; then lt_prog_compiler_wl='-Wl,' -@@ -8610,6 +9108,12 @@ +@@ -8610,6 +9108,12 @@ $as_echo_n "checking for $compiler optio lt_prog_compiler_pic='--shared' lt_prog_compiler_static='--static' ;; @@ -7928,7 +7940,7 @@ Index: binutils-2.21/bfd/configure pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) -@@ -8672,7 +9176,7 @@ +@@ -8672,7 +9176,7 @@ $as_echo_n "checking for $compiler optio lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' case $cc_basename in @@ -7937,7 +7949,7 @@ Index: binutils-2.21/bfd/configure lt_prog_compiler_wl='-Qoption ld ';; *) lt_prog_compiler_wl='-Wl,';; -@@ -8729,13 +9233,17 @@ +@@ -8729,13 +9233,17 @@ case $host_os in lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" ;; esac @@ -7961,7 +7973,7 @@ Index: binutils-2.21/bfd/configure # # Check to make sure the PIC flag actually works. -@@ -8796,6 +9304,11 @@ +@@ -8796,6 +9304,11 @@ fi @@ -7973,7 +7985,7 @@ Index: binutils-2.21/bfd/configure # # Check to make sure the static flag actually works. # -@@ -9146,7 +9659,8 @@ +@@ -9146,7 +9659,8 @@ _LT_EOF allow_undefined_flag=unsupported always_export_symbols=no enable_shared_with_static_runtimes=yes @@ -7983,7 +7995,7 @@ Index: binutils-2.21/bfd/configure if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' -@@ -9194,7 +9708,7 @@ +@@ -9194,7 +9708,7 @@ _LT_EOF if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test "$tmp_diet" = no then @@ -7992,7 +8004,7 @@ Index: binutils-2.21/bfd/configure tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler -@@ -9245,12 +9759,12 @@ +@@ -9245,12 +9759,12 @@ _LT_EOF whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' hardcode_libdir_flag_spec= hardcode_libdir_flag_spec_ld='-rpath $libdir' @@ -8007,7 +8019,7 @@ Index: binutils-2.21/bfd/configure fi ;; esac -@@ -9264,8 +9778,8 @@ +@@ -9264,8 +9778,8 @@ _LT_EOF archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else @@ -8018,7 +8030,7 @@ Index: binutils-2.21/bfd/configure fi ;; -@@ -9283,8 +9797,8 @@ +@@ -9283,8 +9797,8 @@ _LT_EOF _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then @@ -8029,7 +8041,7 @@ Index: binutils-2.21/bfd/configure else ld_shlibs=no fi -@@ -9330,8 +9844,8 @@ +@@ -9330,8 +9844,8 @@ _LT_EOF *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then @@ -8040,7 +8052,7 @@ Index: binutils-2.21/bfd/configure else ld_shlibs=no fi -@@ -9461,7 +9975,13 @@ +@@ -9461,7 +9975,13 @@ _LT_EOF allow_undefined_flag='-berok' # Determine the default libpath from the value encoded in an # empty executable. @@ -8055,7 +8067,7 @@ Index: binutils-2.21/bfd/configure /* end confdefs.h. */ int -@@ -9474,22 +9994,29 @@ +@@ -9474,22 +9994,29 @@ main () _ACEOF if ac_fn_c_try_link "$LINENO"; then : @@ -8098,7 +8110,7 @@ Index: binutils-2.21/bfd/configure hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" -@@ -9501,7 +10028,13 @@ +@@ -9501,7 +10028,13 @@ if test -z "$aix_libpath"; then aix_libp else # Determine the default libpath from the value encoded in an # empty executable. @@ -8113,7 +8125,7 @@ Index: binutils-2.21/bfd/configure /* end confdefs.h. */ int -@@ -9514,22 +10047,29 @@ +@@ -9514,22 +10047,29 @@ main () _ACEOF if ac_fn_c_try_link "$LINENO"; then : @@ -8156,7 +8168,7 @@ Index: binutils-2.21/bfd/configure hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, -@@ -9574,20 +10114,63 @@ +@@ -9574,20 +10114,63 @@ if test -z "$aix_libpath"; then aix_libp # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. @@ -8234,7 +8246,7 @@ Index: binutils-2.21/bfd/configure ;; darwin* | rhapsody*) -@@ -9652,7 +10235,7 @@ +@@ -9652,7 +10235,7 @@ if test -z "$aix_libpath"; then aix_libp # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) @@ -8243,7 +8255,7 @@ Index: binutils-2.21/bfd/configure hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no -@@ -9660,7 +10243,7 @@ +@@ -9660,7 +10243,7 @@ if test -z "$aix_libpath"; then aix_libp hpux9*) if test "$GCC" = yes; then @@ -8252,7 +8264,7 @@ Index: binutils-2.21/bfd/configure else archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi -@@ -9676,7 +10259,7 @@ +@@ -9676,7 +10259,7 @@ if test -z "$aix_libpath"; then aix_libp hpux10*) if test "$GCC" = yes && test "$with_gnu_ld" = no; then @@ -8261,7 +8273,7 @@ Index: binutils-2.21/bfd/configure else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi -@@ -9700,10 +10283,10 @@ +@@ -9700,10 +10283,10 @@ if test -z "$aix_libpath"; then aix_libp archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) @@ -8274,7 +8286,7 @@ Index: binutils-2.21/bfd/configure ;; esac else -@@ -9782,23 +10365,36 @@ +@@ -9782,23 +10365,36 @@ fi irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then @@ -8319,7 +8331,7 @@ Index: binutils-2.21/bfd/configure else archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' -@@ -9883,7 +10479,7 @@ +@@ -9883,7 +10479,7 @@ rm -f core conftest.err conftest.$ac_obj osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' @@ -8328,7 +8340,7 @@ Index: binutils-2.21/bfd/configure hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else allow_undefined_flag=' -expect_unresolved \*' -@@ -9902,9 +10498,9 @@ +@@ -9902,9 +10498,9 @@ rm -f core conftest.err conftest.$ac_obj no_undefined_flag=' -z defs' if test "$GCC" = yes; then wlarc='${wl}' @@ -8340,7 +8352,7 @@ Index: binutils-2.21/bfd/configure else case `$CC -V 2>&1` in *"Compilers 5.0"*) -@@ -10480,8 +11076,9 @@ +@@ -10480,8 +11076,9 @@ cygwin* | mingw* | pw32* | cegcc*) need_version=no need_lib_prefix=no @@ -8352,7 +8364,7 @@ Index: binutils-2.21/bfd/configure library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ -@@ -10514,13 +11111,71 @@ +@@ -10514,13 +11111,71 @@ cygwin* | mingw* | pw32* | cegcc*) library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac @@ -8425,7 +8437,7 @@ Index: binutils-2.21/bfd/configure # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; -@@ -10616,7 +11271,7 @@ +@@ -10616,7 +11271,7 @@ haiku*) soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=yes @@ -8434,7 +8446,7 @@ Index: binutils-2.21/bfd/configure hardcode_into_libs=yes ;; -@@ -11412,7 +12067,7 @@ +@@ -11412,7 +12067,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF @@ -8443,7 +8455,7 @@ Index: binutils-2.21/bfd/configure #include "confdefs.h" #if HAVE_DLFCN_H -@@ -11456,10 +12111,10 @@ +@@ -11456,10 +12111,10 @@ else /* When -fvisbility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) @@ -8456,7 +8468,7 @@ Index: binutils-2.21/bfd/configure int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); -@@ -11518,7 +12173,7 @@ +@@ -11518,7 +12173,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF @@ -8465,7 +8477,7 @@ Index: binutils-2.21/bfd/configure #include "confdefs.h" #if HAVE_DLFCN_H -@@ -11562,10 +12217,10 @@ +@@ -11562,10 +12217,10 @@ else /* When -fvisbility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) @@ -8478,7 +8490,7 @@ Index: binutils-2.21/bfd/configure int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); -@@ -14897,7 +15552,7 @@ +@@ -14897,7 +15552,7 @@ SHARED_LDFLAGS= if test "$enable_shared" = "yes"; then x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'` if test -n "$x"; then @@ -8487,7 +8499,7 @@ Index: binutils-2.21/bfd/configure fi # More hacks to build DLLs on Windows. -@@ -16473,13 +17128,20 @@ +@@ -16473,13 +17128,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_ lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' @@ -8508,7 +8520,7 @@ Index: binutils-2.21/bfd/configure STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' -@@ -16494,14 +17156,17 @@ +@@ -16494,14 +17156,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$l lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' @@ -8527,7 +8539,7 @@ Index: binutils-2.21/bfd/configure DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' -@@ -16534,12 +17199,12 @@ +@@ -16534,12 +17199,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcod hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' @@ -8541,7 +8553,7 @@ Index: binutils-2.21/bfd/configure file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' -@@ -16594,8 +17259,13 @@ +@@ -16594,8 +17259,13 @@ reload_flag \ OBJDUMP \ deplibs_check_method \ file_magic_cmd \ @@ -8555,7 +8567,7 @@ Index: binutils-2.21/bfd/configure STRIP \ RANLIB \ CC \ -@@ -16605,12 +17275,14 @@ +@@ -16605,12 +17275,14 @@ lt_cv_sys_global_symbol_pipe \ lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ @@ -8571,7 +8583,7 @@ Index: binutils-2.21/bfd/configure DSYMUTIL \ NMEDIT \ LIPO \ -@@ -16626,7 +17298,6 @@ +@@ -16626,7 +17298,6 @@ no_undefined_flag \ hardcode_libdir_flag_spec \ hardcode_libdir_flag_spec_ld \ hardcode_libdir_separator \ @@ -8579,7 +8591,7 @@ Index: binutils-2.21/bfd/configure exclude_expsyms \ include_expsyms \ file_list_spec \ -@@ -16662,6 +17333,7 @@ +@@ -16662,6 +17333,7 @@ module_cmds \ module_expsym_cmds \ export_symbols_cmds \ prelink_cmds \ @@ -8587,7 +8599,7 @@ Index: binutils-2.21/bfd/configure postinstall_cmds \ postuninstall_cmds \ finish_cmds \ -@@ -17441,7 +18113,8 @@ +@@ -17441,7 +18113,8 @@ $as_echo X"$file" | # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, @@ -8597,7 +8609,7 @@ Index: binutils-2.21/bfd/configure # Written by Gordon Matzigkeit, 1996 # # This file is part of GNU Libtool. -@@ -17544,19 +18217,42 @@ +@@ -17544,19 +18217,42 @@ SP2NL=$lt_lt_SP2NL # turn newlines into spaces. NL2SP=$lt_lt_NL2SP @@ -8641,7 +8653,7 @@ Index: binutils-2.21/bfd/configure # A symbol stripping program. STRIP=$lt_STRIP -@@ -17586,6 +18282,12 @@ +@@ -17586,6 +18282,12 @@ global_symbol_to_c_name_address=$lt_lt_c # Transform the output of nm in a C name address pair when lib prefix is needed. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix @@ -8654,7 +8666,7 @@ Index: binutils-2.21/bfd/configure # The name of the directory that contains temporary libtool files. objdir=$objdir -@@ -17595,6 +18297,9 @@ +@@ -17595,6 +18297,9 @@ MAGIC_CMD=$MAGIC_CMD # Must we lock files when doing compilation? need_locks=$lt_need_locks @@ -8664,7 +8676,7 @@ Index: binutils-2.21/bfd/configure # Tool to manipulate archived DWARF debug symbol files on Mac OS X. DSYMUTIL=$lt_DSYMUTIL -@@ -17709,12 +18414,12 @@ +@@ -17709,12 +18414,12 @@ with_gcc=$GCC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag @@ -8680,7 +8692,7 @@ Index: binutils-2.21/bfd/configure # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static -@@ -17801,9 +18506,6 @@ +@@ -17801,9 +18506,6 @@ inherit_rpath=$inherit_rpath # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs @@ -8690,7 +8702,7 @@ Index: binutils-2.21/bfd/configure # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols -@@ -17819,6 +18521,9 @@ +@@ -17819,6 +18521,9 @@ include_expsyms=$lt_include_expsyms # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds @@ -8700,7 +8712,7 @@ Index: binutils-2.21/bfd/configure # Specify filename containing input files. file_list_spec=$lt_file_list_spec -@@ -17851,210 +18556,169 @@ +@@ -17851,210 +18556,169 @@ ltmain="$ac_aux_dir/ltmain.sh" # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? @@ -9073,9 +9085,9 @@ Index: binutils-2.21/bfd/configure Index: binutils-2.21/opcodes/configure =================================================================== ---- binutils-2.21.orig/opcodes/configure 2010-11-05 03:32:32.000000000 -0700 -+++ binutils-2.21/opcodes/configure 2011-01-07 11:26:03.686101001 -0800 -@@ -647,6 +647,9 @@ +--- binutils-2.21.orig/opcodes/configure ++++ binutils-2.21/opcodes/configure +@@ -647,6 +647,9 @@ OTOOL LIPO NMEDIT DSYMUTIL @@ -9085,7 +9097,7 @@ Index: binutils-2.21/opcodes/configure OBJDUMP LN_S NM -@@ -759,6 +762,7 @@ +@@ -759,6 +762,7 @@ enable_static with_pic enable_fast_install with_gnu_ld @@ -9093,7 +9105,7 @@ Index: binutils-2.21/opcodes/configure enable_libtool_lock enable_targets enable_werror -@@ -1417,6 +1421,8 @@ +@@ -1417,6 +1421,8 @@ Optional Packages: --with-pic try to use only PIC/non-PIC objects [default=use both] --with-gnu-ld assume the C compiler uses GNU ld [default=no] @@ -9102,7 +9114,7 @@ Index: binutils-2.21/opcodes/configure Some influential environment variables: CC C compiler command -@@ -5112,8 +5118,8 @@ +@@ -5112,8 +5118,8 @@ esac @@ -9113,7 +9125,7 @@ Index: binutils-2.21/opcodes/configure -@@ -5153,7 +5159,7 @@ +@@ -5153,7 +5159,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 $as_echo_n "checking how to print strings... " >&6; } # Test print first, because it will be a builtin if present. @@ -9122,7 +9134,7 @@ Index: binutils-2.21/opcodes/configure test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='print -r --' elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then -@@ -5839,8 +5845,8 @@ +@@ -5839,8 +5845,8 @@ $as_echo_n "checking whether the shell u # Try some XSI features xsi_shell=no ( _lt_dummy="a/b/c" @@ -9133,7 +9145,7 @@ Index: binutils-2.21/opcodes/configure && eval 'test $(( 1 + 1 )) -eq 2 \ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ && xsi_shell=yes -@@ -5889,6 +5895,80 @@ +@@ -5889,6 +5895,80 @@ esac @@ -9214,7 +9226,7 @@ Index: binutils-2.21/opcodes/configure { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 $as_echo_n "checking for $LD option to reload object files... " >&6; } if test "${lt_cv_ld_reload_flag+set}" = set; then : -@@ -5905,6 +5985,11 @@ +@@ -5905,6 +5985,11 @@ case $reload_flag in esac reload_cmds='$LD$reload_flag -o $output$reload_objs' case $host_os in @@ -9226,7 +9238,7 @@ Index: binutils-2.21/opcodes/configure darwin*) if test "$GCC" = yes; then reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' -@@ -6073,7 +6158,8 @@ +@@ -6073,7 +6158,8 @@ mingw* | pw32*) lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else @@ -9236,7 +9248,7 @@ Index: binutils-2.21/opcodes/configure lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; -@@ -6227,6 +6313,21 @@ +@@ -6227,6 +6313,21 @@ esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 $as_echo "$lt_cv_deplibs_check_method" >&6; } @@ -9258,7 +9270,7 @@ Index: binutils-2.21/opcodes/configure file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown -@@ -6242,9 +6343,162 @@ +@@ -6242,9 +6343,162 @@ test -z "$deplibs_check_method" && depli @@ -9423,7 +9435,7 @@ Index: binutils-2.21/opcodes/configure { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_AR+set}" = set; then : -@@ -6260,7 +6514,7 @@ +@@ -6260,7 +6514,7 @@ do test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then @@ -9432,7 +9444,7 @@ Index: binutils-2.21/opcodes/configure $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi -@@ -6280,11 +6534,15 @@ +@@ -6280,11 +6534,15 @@ $as_echo "no" >&6; } fi @@ -9451,7 +9463,7 @@ Index: binutils-2.21/opcodes/configure { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : -@@ -6300,7 +6558,7 @@ +@@ -6300,7 +6558,7 @@ do test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then @@ -9460,7 +9472,7 @@ Index: binutils-2.21/opcodes/configure $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi -@@ -6319,6 +6577,10 @@ +@@ -6319,6 +6577,10 @@ else $as_echo "no" >&6; } fi @@ -9471,7 +9483,7 @@ Index: binutils-2.21/opcodes/configure if test "x$ac_ct_AR" = x; then AR="false" else -@@ -6330,12 +6592,11 @@ +@@ -6330,12 +6592,11 @@ ac_tool_warned=yes ;; esac AR=$ac_ct_AR fi @@ -9487,7 +9499,7 @@ Index: binutils-2.21/opcodes/configure -@@ -6346,6 +6607,63 @@ +@@ -6346,6 +6607,63 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru @@ -9551,7 +9563,7 @@ Index: binutils-2.21/opcodes/configure if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -@@ -6681,8 +6999,8 @@ +@@ -6681,8 +6999,8 @@ esac lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address @@ -9562,7 +9574,7 @@ Index: binutils-2.21/opcodes/configure # Handle CRLF in mingw tool chain opt_cr= -@@ -6718,6 +7036,7 @@ +@@ -6718,6 +7036,7 @@ for ac_symprfx in "" "_"; do else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi @@ -9570,7 +9582,7 @@ Index: binutils-2.21/opcodes/configure # Check to see that the pipe works correctly. pipe_works=no -@@ -6759,6 +7078,18 @@ +@@ -6759,6 +7078,18 @@ _LT_EOF if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext @@ -9589,7 +9601,7 @@ Index: binutils-2.21/opcodes/configure #ifdef __cplusplus extern "C" { #endif -@@ -6770,7 +7101,7 @@ +@@ -6770,7 +7101,7 @@ _LT_EOF cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ @@ -9598,7 +9610,7 @@ Index: binutils-2.21/opcodes/configure const char *name; void *address; } -@@ -6796,8 +7127,8 @@ +@@ -6796,8 +7127,8 @@ static const void *lt_preloaded_setup() _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext @@ -9609,7 +9621,7 @@ Index: binutils-2.21/opcodes/configure LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 -@@ -6807,8 +7138,8 @@ +@@ -6807,8 +7138,8 @@ _LT_EOF test $ac_status = 0; } && test -s conftest${ac_exeext}; then pipe_works=yes fi @@ -9620,7 +9632,7 @@ Index: binutils-2.21/opcodes/configure else echo "cannot find nm_test_func in $nlist" >&5 fi -@@ -6845,6 +7176,14 @@ +@@ -6845,6 +7176,14 @@ else $as_echo "ok" >&6; } fi @@ -9635,7 +9647,7 @@ Index: binutils-2.21/opcodes/configure -@@ -6866,6 +7205,47 @@ +@@ -6866,6 +7205,47 @@ fi @@ -9683,7 +9695,7 @@ Index: binutils-2.21/opcodes/configure # Check whether --enable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then : enableval=$enable_libtool_lock; -@@ -7059,6 +7439,123 @@ +@@ -7059,6 +7439,123 @@ esac need_locks="$enable_libtool_lock" @@ -9807,7 +9819,7 @@ Index: binutils-2.21/opcodes/configure case $host_os in rhapsody* | darwin*) -@@ -7622,6 +8119,8 @@ +@@ -7622,6 +8119,8 @@ _LT_EOF $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 echo "$AR cru libconftest.a conftest.o" >&5 $AR cru libconftest.a conftest.o 2>&5 @@ -9816,7 +9828,7 @@ Index: binutils-2.21/opcodes/configure cat > conftest.c << _LT_EOF int main() { return 0;} _LT_EOF -@@ -7787,7 +8286,8 @@ +@@ -7787,7 +8286,8 @@ fi LIBTOOL_DEPS="$ltmain" # Always use our own libtool. @@ -9826,7 +9838,7 @@ Index: binutils-2.21/opcodes/configure -@@ -7876,7 +8376,7 @@ +@@ -7876,7 +8376,7 @@ aix3*) esac # Global variables: @@ -9835,7 +9847,7 @@ Index: binutils-2.21/opcodes/configure can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, -@@ -8174,8 +8674,6 @@ +@@ -8174,8 +8674,6 @@ fi lt_prog_compiler_pic= lt_prog_compiler_static= @@ -9844,7 +9856,7 @@ Index: binutils-2.21/opcodes/configure if test "$GCC" = yes; then lt_prog_compiler_wl='-Wl,' -@@ -8340,6 +8838,12 @@ +@@ -8340,6 +8838,12 @@ $as_echo_n "checking for $compiler optio lt_prog_compiler_pic='--shared' lt_prog_compiler_static='--static' ;; @@ -9857,7 +9869,7 @@ Index: binutils-2.21/opcodes/configure pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) -@@ -8402,7 +8906,7 @@ +@@ -8402,7 +8906,7 @@ $as_echo_n "checking for $compiler optio lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' case $cc_basename in @@ -9866,7 +9878,7 @@ Index: binutils-2.21/opcodes/configure lt_prog_compiler_wl='-Qoption ld ';; *) lt_prog_compiler_wl='-Wl,';; -@@ -8459,13 +8963,17 @@ +@@ -8459,13 +8963,17 @@ case $host_os in lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" ;; esac @@ -9890,7 +9902,7 @@ Index: binutils-2.21/opcodes/configure # # Check to make sure the PIC flag actually works. -@@ -8526,6 +9034,11 @@ +@@ -8526,6 +9034,11 @@ fi @@ -9902,7 +9914,7 @@ Index: binutils-2.21/opcodes/configure # # Check to make sure the static flag actually works. # -@@ -8876,7 +9389,8 @@ +@@ -8876,7 +9389,8 @@ _LT_EOF allow_undefined_flag=unsupported always_export_symbols=no enable_shared_with_static_runtimes=yes @@ -9912,7 +9924,7 @@ Index: binutils-2.21/opcodes/configure if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' -@@ -8924,7 +9438,7 @@ +@@ -8924,7 +9438,7 @@ _LT_EOF if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test "$tmp_diet" = no then @@ -9921,7 +9933,7 @@ Index: binutils-2.21/opcodes/configure tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler -@@ -8975,12 +9489,12 @@ +@@ -8975,12 +9489,12 @@ _LT_EOF whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' hardcode_libdir_flag_spec= hardcode_libdir_flag_spec_ld='-rpath $libdir' @@ -9936,7 +9948,7 @@ Index: binutils-2.21/opcodes/configure fi ;; esac -@@ -8994,8 +9508,8 @@ +@@ -8994,8 +9508,8 @@ _LT_EOF archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else @@ -9947,7 +9959,7 @@ Index: binutils-2.21/opcodes/configure fi ;; -@@ -9013,8 +9527,8 @@ +@@ -9013,8 +9527,8 @@ _LT_EOF _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then @@ -9958,7 +9970,7 @@ Index: binutils-2.21/opcodes/configure else ld_shlibs=no fi -@@ -9060,8 +9574,8 @@ +@@ -9060,8 +9574,8 @@ _LT_EOF *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then @@ -9969,7 +9981,7 @@ Index: binutils-2.21/opcodes/configure else ld_shlibs=no fi -@@ -9191,7 +9705,13 @@ +@@ -9191,7 +9705,13 @@ _LT_EOF allow_undefined_flag='-berok' # Determine the default libpath from the value encoded in an # empty executable. @@ -9984,7 +9996,7 @@ Index: binutils-2.21/opcodes/configure /* end confdefs.h. */ int -@@ -9204,22 +9724,29 @@ +@@ -9204,22 +9724,29 @@ main () _ACEOF if ac_fn_c_try_link "$LINENO"; then : @@ -10027,7 +10039,7 @@ Index: binutils-2.21/opcodes/configure hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" -@@ -9231,7 +9758,13 @@ +@@ -9231,7 +9758,13 @@ if test -z "$aix_libpath"; then aix_libp else # Determine the default libpath from the value encoded in an # empty executable. @@ -10042,7 +10054,7 @@ Index: binutils-2.21/opcodes/configure /* end confdefs.h. */ int -@@ -9244,22 +9777,29 @@ +@@ -9244,22 +9777,29 @@ main () _ACEOF if ac_fn_c_try_link "$LINENO"; then : @@ -10085,7 +10097,7 @@ Index: binutils-2.21/opcodes/configure hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, -@@ -9304,20 +9844,63 @@ +@@ -9304,20 +9844,63 @@ if test -z "$aix_libpath"; then aix_libp # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. @@ -10163,7 +10175,7 @@ Index: binutils-2.21/opcodes/configure ;; darwin* | rhapsody*) -@@ -9382,7 +9965,7 @@ +@@ -9382,7 +9965,7 @@ if test -z "$aix_libpath"; then aix_libp # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) @@ -10172,7 +10184,7 @@ Index: binutils-2.21/opcodes/configure hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no -@@ -9390,7 +9973,7 @@ +@@ -9390,7 +9973,7 @@ if test -z "$aix_libpath"; then aix_libp hpux9*) if test "$GCC" = yes; then @@ -10181,7 +10193,7 @@ Index: binutils-2.21/opcodes/configure else archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi -@@ -9406,7 +9989,7 @@ +@@ -9406,7 +9989,7 @@ if test -z "$aix_libpath"; then aix_libp hpux10*) if test "$GCC" = yes && test "$with_gnu_ld" = no; then @@ -10190,7 +10202,7 @@ Index: binutils-2.21/opcodes/configure else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi -@@ -9430,10 +10013,10 @@ +@@ -9430,10 +10013,10 @@ if test -z "$aix_libpath"; then aix_libp archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) @@ -10203,7 +10215,7 @@ Index: binutils-2.21/opcodes/configure ;; esac else -@@ -9512,23 +10095,36 @@ +@@ -9512,23 +10095,36 @@ fi irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then @@ -10248,7 +10260,7 @@ Index: binutils-2.21/opcodes/configure else archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' -@@ -9613,7 +10209,7 @@ +@@ -9613,7 +10209,7 @@ rm -f core conftest.err conftest.$ac_obj osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' @@ -10257,7 +10269,7 @@ Index: binutils-2.21/opcodes/configure hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else allow_undefined_flag=' -expect_unresolved \*' -@@ -9632,9 +10228,9 @@ +@@ -9632,9 +10228,9 @@ rm -f core conftest.err conftest.$ac_obj no_undefined_flag=' -z defs' if test "$GCC" = yes; then wlarc='${wl}' @@ -10269,7 +10281,7 @@ Index: binutils-2.21/opcodes/configure else case `$CC -V 2>&1` in *"Compilers 5.0"*) -@@ -10210,8 +10806,9 @@ +@@ -10210,8 +10806,9 @@ cygwin* | mingw* | pw32* | cegcc*) need_version=no need_lib_prefix=no @@ -10281,7 +10293,7 @@ Index: binutils-2.21/opcodes/configure library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ -@@ -10244,13 +10841,71 @@ +@@ -10244,13 +10841,71 @@ cygwin* | mingw* | pw32* | cegcc*) library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac @@ -10354,7 +10366,7 @@ Index: binutils-2.21/opcodes/configure # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; -@@ -10346,7 +11001,7 @@ +@@ -10346,7 +11001,7 @@ haiku*) soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=yes @@ -10363,7 +10375,7 @@ Index: binutils-2.21/opcodes/configure hardcode_into_libs=yes ;; -@@ -11142,7 +11797,7 @@ +@@ -11142,7 +11797,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF @@ -10372,7 +10384,7 @@ Index: binutils-2.21/opcodes/configure #include "confdefs.h" #if HAVE_DLFCN_H -@@ -11186,10 +11841,10 @@ +@@ -11186,10 +11841,10 @@ else /* When -fvisbility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) @@ -10385,7 +10397,7 @@ Index: binutils-2.21/opcodes/configure int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); -@@ -11248,7 +11903,7 @@ +@@ -11248,7 +11903,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF @@ -10394,7 +10406,7 @@ Index: binutils-2.21/opcodes/configure #include "confdefs.h" #if HAVE_DLFCN_H -@@ -11292,10 +11947,10 @@ +@@ -11292,10 +11947,10 @@ else /* When -fvisbility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) @@ -10407,7 +10419,7 @@ Index: binutils-2.21/opcodes/configure int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); -@@ -12328,7 +12983,7 @@ +@@ -12328,7 +12983,7 @@ if test "$enable_shared" = "yes"; then # since libbfd may not pull in the entirety of libiberty. x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'` if test -n "$x"; then @@ -10416,7 +10428,7 @@ Index: binutils-2.21/opcodes/configure fi case "${host}" in -@@ -13289,13 +13944,20 @@ +@@ -13289,13 +13944,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_ lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' @@ -10437,7 +10449,7 @@ Index: binutils-2.21/opcodes/configure STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' -@@ -13310,14 +13972,17 @@ +@@ -13310,14 +13972,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$l lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' @@ -10456,7 +10468,7 @@ Index: binutils-2.21/opcodes/configure DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' -@@ -13350,12 +14015,12 @@ +@@ -13350,12 +14015,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcod hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' @@ -10470,7 +10482,7 @@ Index: binutils-2.21/opcodes/configure file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' -@@ -13410,8 +14075,13 @@ +@@ -13410,8 +14075,13 @@ reload_flag \ OBJDUMP \ deplibs_check_method \ file_magic_cmd \ @@ -10484,7 +10496,7 @@ Index: binutils-2.21/opcodes/configure STRIP \ RANLIB \ CC \ -@@ -13421,12 +14091,14 @@ +@@ -13421,12 +14091,14 @@ lt_cv_sys_global_symbol_pipe \ lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ @@ -10500,7 +10512,7 @@ Index: binutils-2.21/opcodes/configure DSYMUTIL \ NMEDIT \ LIPO \ -@@ -13442,7 +14114,6 @@ +@@ -13442,7 +14114,6 @@ no_undefined_flag \ hardcode_libdir_flag_spec \ hardcode_libdir_flag_spec_ld \ hardcode_libdir_separator \ @@ -10508,7 +10520,7 @@ Index: binutils-2.21/opcodes/configure exclude_expsyms \ include_expsyms \ file_list_spec \ -@@ -13478,6 +14149,7 @@ +@@ -13478,6 +14149,7 @@ module_cmds \ module_expsym_cmds \ export_symbols_cmds \ prelink_cmds \ @@ -10516,7 +10528,7 @@ Index: binutils-2.21/opcodes/configure postinstall_cmds \ postuninstall_cmds \ finish_cmds \ -@@ -14234,7 +14906,8 @@ +@@ -14234,7 +14906,8 @@ $as_echo X"$file" | # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, @@ -10526,7 +10538,7 @@ Index: binutils-2.21/opcodes/configure # Written by Gordon Matzigkeit, 1996 # # This file is part of GNU Libtool. -@@ -14337,19 +15010,42 @@ +@@ -14337,19 +15010,42 @@ SP2NL=$lt_lt_SP2NL # turn newlines into spaces. NL2SP=$lt_lt_NL2SP @@ -10570,7 +10582,7 @@ Index: binutils-2.21/opcodes/configure # A symbol stripping program. STRIP=$lt_STRIP -@@ -14379,6 +15075,12 @@ +@@ -14379,6 +15075,12 @@ global_symbol_to_c_name_address=$lt_lt_c # Transform the output of nm in a C name address pair when lib prefix is needed. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix @@ -10583,7 +10595,7 @@ Index: binutils-2.21/opcodes/configure # The name of the directory that contains temporary libtool files. objdir=$objdir -@@ -14388,6 +15090,9 @@ +@@ -14388,6 +15090,9 @@ MAGIC_CMD=$MAGIC_CMD # Must we lock files when doing compilation? need_locks=$lt_need_locks @@ -10593,7 +10605,7 @@ Index: binutils-2.21/opcodes/configure # Tool to manipulate archived DWARF debug symbol files on Mac OS X. DSYMUTIL=$lt_DSYMUTIL -@@ -14502,12 +15207,12 @@ +@@ -14502,12 +15207,12 @@ with_gcc=$GCC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag @@ -10609,7 +10621,7 @@ Index: binutils-2.21/opcodes/configure # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static -@@ -14594,9 +15299,6 @@ +@@ -14594,9 +15299,6 @@ inherit_rpath=$inherit_rpath # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs @@ -10619,7 +10631,7 @@ Index: binutils-2.21/opcodes/configure # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols -@@ -14612,6 +15314,9 @@ +@@ -14612,6 +15314,9 @@ include_expsyms=$lt_include_expsyms # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds @@ -10629,7 +10641,7 @@ Index: binutils-2.21/opcodes/configure # Specify filename containing input files. file_list_spec=$lt_file_list_spec -@@ -14644,210 +15349,169 @@ +@@ -14644,210 +15349,169 @@ ltmain="$ac_aux_dir/ltmain.sh" # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? @@ -11002,9 +11014,9 @@ Index: binutils-2.21/opcodes/configure Index: binutils-2.21/binutils/configure =================================================================== ---- binutils-2.21.orig/binutils/configure 2010-11-05 03:32:55.000000000 -0700 -+++ binutils-2.21/binutils/configure 2011-01-07 10:49:16.426101000 -0800 -@@ -654,8 +654,11 @@ +--- binutils-2.21.orig/binutils/configure ++++ binutils-2.21/binutils/configure +@@ -654,8 +654,11 @@ OTOOL LIPO NMEDIT DSYMUTIL @@ -11016,7 +11028,7 @@ Index: binutils-2.21/binutils/configure OBJDUMP LN_S NM -@@ -768,6 +771,7 @@ +@@ -768,6 +771,7 @@ enable_static with_pic enable_fast_install with_gnu_ld @@ -11024,7 +11036,7 @@ Index: binutils-2.21/binutils/configure enable_libtool_lock enable_targets enable_werror -@@ -1429,6 +1433,8 @@ +@@ -1429,6 +1433,8 @@ Optional Packages: --with-pic try to use only PIC/non-PIC objects [default=use both] --with-gnu-ld assume the C compiler uses GNU ld [default=no] @@ -11033,7 +11045,7 @@ Index: binutils-2.21/binutils/configure --with-gnu-ld assume the C compiler uses GNU ld default=no --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib --without-libiconv-prefix don't search for libiconv in includedir and libdir -@@ -5146,8 +5152,8 @@ +@@ -5146,8 +5152,8 @@ esac @@ -11044,7 +11056,7 @@ Index: binutils-2.21/binutils/configure -@@ -5187,7 +5193,7 @@ +@@ -5187,7 +5193,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 $as_echo_n "checking how to print strings... " >&6; } # Test print first, because it will be a builtin if present. @@ -11053,7 +11065,7 @@ Index: binutils-2.21/binutils/configure test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='print -r --' elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then -@@ -5873,8 +5879,8 @@ +@@ -5873,8 +5879,8 @@ $as_echo_n "checking whether the shell u # Try some XSI features xsi_shell=no ( _lt_dummy="a/b/c" @@ -11064,7 +11076,7 @@ Index: binutils-2.21/binutils/configure && eval 'test $(( 1 + 1 )) -eq 2 \ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ && xsi_shell=yes -@@ -5923,6 +5929,80 @@ +@@ -5923,6 +5929,80 @@ esac @@ -11145,7 +11157,7 @@ Index: binutils-2.21/binutils/configure { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 $as_echo_n "checking for $LD option to reload object files... " >&6; } if test "${lt_cv_ld_reload_flag+set}" = set; then : -@@ -5939,6 +6019,11 @@ +@@ -5939,6 +6019,11 @@ case $reload_flag in esac reload_cmds='$LD$reload_flag -o $output$reload_objs' case $host_os in @@ -11157,7 +11169,7 @@ Index: binutils-2.21/binutils/configure darwin*) if test "$GCC" = yes; then reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' -@@ -6107,7 +6192,8 @@ +@@ -6107,7 +6192,8 @@ mingw* | pw32*) lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else @@ -11167,7 +11179,7 @@ Index: binutils-2.21/binutils/configure lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; -@@ -6261,6 +6347,21 @@ +@@ -6261,6 +6347,21 @@ esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 $as_echo "$lt_cv_deplibs_check_method" >&6; } @@ -11189,7 +11201,7 @@ Index: binutils-2.21/binutils/configure file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown -@@ -6276,9 +6377,162 @@ +@@ -6276,9 +6377,162 @@ test -z "$deplibs_check_method" && depli @@ -11354,7 +11366,7 @@ Index: binutils-2.21/binutils/configure { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_AR+set}" = set; then : -@@ -6294,7 +6548,7 @@ +@@ -6294,7 +6548,7 @@ do test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then @@ -11363,7 +11375,7 @@ Index: binutils-2.21/binutils/configure $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi -@@ -6314,11 +6568,15 @@ +@@ -6314,11 +6568,15 @@ $as_echo "no" >&6; } fi @@ -11382,7 +11394,7 @@ Index: binutils-2.21/binutils/configure { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : -@@ -6334,7 +6592,7 @@ +@@ -6334,7 +6592,7 @@ do test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then @@ -11391,7 +11403,7 @@ Index: binutils-2.21/binutils/configure $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi -@@ -6353,6 +6611,10 @@ +@@ -6353,6 +6611,10 @@ else $as_echo "no" >&6; } fi @@ -11402,7 +11414,7 @@ Index: binutils-2.21/binutils/configure if test "x$ac_ct_AR" = x; then AR="false" else -@@ -6364,12 +6626,10 @@ +@@ -6364,12 +6626,10 @@ ac_tool_warned=yes ;; esac AR=$ac_ct_AR fi @@ -11417,7 +11429,7 @@ Index: binutils-2.21/binutils/configure -@@ -6381,6 +6641,64 @@ +@@ -6381,6 +6641,64 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru @@ -11482,7 +11494,7 @@ Index: binutils-2.21/binutils/configure if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 -@@ -6715,8 +7033,8 @@ +@@ -6715,8 +7033,8 @@ esac lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address @@ -11493,7 +11505,7 @@ Index: binutils-2.21/binutils/configure # Handle CRLF in mingw tool chain opt_cr= -@@ -6752,6 +7070,7 @@ +@@ -6752,6 +7070,7 @@ for ac_symprfx in "" "_"; do else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi @@ -11501,7 +11513,7 @@ Index: binutils-2.21/binutils/configure # Check to see that the pipe works correctly. pipe_works=no -@@ -6793,6 +7112,18 @@ +@@ -6793,6 +7112,18 @@ _LT_EOF if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext @@ -11520,7 +11532,7 @@ Index: binutils-2.21/binutils/configure #ifdef __cplusplus extern "C" { #endif -@@ -6804,7 +7135,7 @@ +@@ -6804,7 +7135,7 @@ _LT_EOF cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ @@ -11529,7 +11541,7 @@ Index: binutils-2.21/binutils/configure const char *name; void *address; } -@@ -6830,8 +7161,8 @@ +@@ -6830,8 +7161,8 @@ static const void *lt_preloaded_setup() _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext @@ -11540,7 +11552,7 @@ Index: binutils-2.21/binutils/configure LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 -@@ -6841,8 +7172,8 @@ +@@ -6841,8 +7172,8 @@ _LT_EOF test $ac_status = 0; } && test -s conftest${ac_exeext}; then pipe_works=yes fi @@ -11551,7 +11563,7 @@ Index: binutils-2.21/binutils/configure else echo "cannot find nm_test_func in $nlist" >&5 fi -@@ -6879,6 +7210,19 @@ +@@ -6879,6 +7210,19 @@ else $as_echo "ok" >&6; } fi @@ -11571,7 +11583,7 @@ Index: binutils-2.21/binutils/configure -@@ -6899,6 +7243,42 @@ +@@ -6899,6 +7243,42 @@ fi @@ -11614,7 +11626,7 @@ Index: binutils-2.21/binutils/configure # Check whether --enable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then : -@@ -7093,6 +7473,123 @@ +@@ -7093,6 +7473,123 @@ esac need_locks="$enable_libtool_lock" @@ -11738,7 +11750,7 @@ Index: binutils-2.21/binutils/configure case $host_os in rhapsody* | darwin*) -@@ -7656,6 +8153,8 @@ +@@ -7656,6 +8153,8 @@ _LT_EOF $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 echo "$AR cru libconftest.a conftest.o" >&5 $AR cru libconftest.a conftest.o 2>&5 @@ -11747,7 +11759,7 @@ Index: binutils-2.21/binutils/configure cat > conftest.c << _LT_EOF int main() { return 0;} _LT_EOF -@@ -7851,7 +8350,8 @@ +@@ -7851,7 +8350,8 @@ fi LIBTOOL_DEPS="$ltmain" # Always use our own libtool. @@ -11757,7 +11769,7 @@ Index: binutils-2.21/binutils/configure -@@ -7940,7 +8440,7 @@ +@@ -7940,7 +8440,7 @@ aix3*) esac # Global variables: @@ -11766,7 +11778,7 @@ Index: binutils-2.21/binutils/configure can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, -@@ -8238,8 +8738,6 @@ +@@ -8238,8 +8738,6 @@ fi lt_prog_compiler_pic= lt_prog_compiler_static= @@ -11775,7 +11787,7 @@ Index: binutils-2.21/binutils/configure if test "$GCC" = yes; then lt_prog_compiler_wl='-Wl,' -@@ -8404,6 +8902,12 @@ +@@ -8404,6 +8902,12 @@ $as_echo_n "checking for $compiler optio lt_prog_compiler_pic='--shared' lt_prog_compiler_static='--static' ;; @@ -11788,7 +11800,7 @@ Index: binutils-2.21/binutils/configure pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) -@@ -8466,7 +8970,7 @@ +@@ -8466,7 +8970,7 @@ $as_echo_n "checking for $compiler optio lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' case $cc_basename in @@ -11797,7 +11809,7 @@ Index: binutils-2.21/binutils/configure lt_prog_compiler_wl='-Qoption ld ';; *) lt_prog_compiler_wl='-Wl,';; -@@ -8523,13 +9027,17 @@ +@@ -8523,13 +9027,17 @@ case $host_os in lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" ;; esac @@ -11821,7 +11833,7 @@ Index: binutils-2.21/binutils/configure # # Check to make sure the PIC flag actually works. -@@ -8590,6 +9098,11 @@ +@@ -8590,6 +9098,11 @@ fi @@ -11833,7 +11845,7 @@ Index: binutils-2.21/binutils/configure # # Check to make sure the static flag actually works. # -@@ -8940,7 +9453,8 @@ +@@ -8940,7 +9453,8 @@ _LT_EOF allow_undefined_flag=unsupported always_export_symbols=no enable_shared_with_static_runtimes=yes @@ -11843,7 +11855,7 @@ Index: binutils-2.21/binutils/configure if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' -@@ -8988,7 +9502,7 @@ +@@ -8988,7 +9502,7 @@ _LT_EOF if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test "$tmp_diet" = no then @@ -11852,7 +11864,7 @@ Index: binutils-2.21/binutils/configure tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler -@@ -9039,12 +9553,12 @@ +@@ -9039,12 +9553,12 @@ _LT_EOF whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' hardcode_libdir_flag_spec= hardcode_libdir_flag_spec_ld='-rpath $libdir' @@ -11867,7 +11879,7 @@ Index: binutils-2.21/binutils/configure fi ;; esac -@@ -9058,8 +9572,8 @@ +@@ -9058,8 +9572,8 @@ _LT_EOF archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else @@ -11878,7 +11890,7 @@ Index: binutils-2.21/binutils/configure fi ;; -@@ -9077,8 +9591,8 @@ +@@ -9077,8 +9591,8 @@ _LT_EOF _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then @@ -11889,7 +11901,7 @@ Index: binutils-2.21/binutils/configure else ld_shlibs=no fi -@@ -9124,8 +9638,8 @@ +@@ -9124,8 +9638,8 @@ _LT_EOF *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then @@ -11900,7 +11912,7 @@ Index: binutils-2.21/binutils/configure else ld_shlibs=no fi -@@ -9255,7 +9769,13 @@ +@@ -9255,7 +9769,13 @@ _LT_EOF allow_undefined_flag='-berok' # Determine the default libpath from the value encoded in an # empty executable. @@ -11915,7 +11927,7 @@ Index: binutils-2.21/binutils/configure /* end confdefs.h. */ int -@@ -9268,22 +9788,29 @@ +@@ -9268,22 +9788,29 @@ main () _ACEOF if ac_fn_c_try_link "$LINENO"; then : @@ -11958,7 +11970,7 @@ Index: binutils-2.21/binutils/configure hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" -@@ -9295,7 +9822,13 @@ +@@ -9295,7 +9822,13 @@ if test -z "$aix_libpath"; then aix_libp else # Determine the default libpath from the value encoded in an # empty executable. @@ -11973,7 +11985,7 @@ Index: binutils-2.21/binutils/configure /* end confdefs.h. */ int -@@ -9308,22 +9841,29 @@ +@@ -9308,22 +9841,29 @@ main () _ACEOF if ac_fn_c_try_link "$LINENO"; then : @@ -12016,7 +12028,7 @@ Index: binutils-2.21/binutils/configure hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, -@@ -9368,20 +9908,63 @@ +@@ -9368,20 +9908,63 @@ if test -z "$aix_libpath"; then aix_libp # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. @@ -12094,7 +12106,7 @@ Index: binutils-2.21/binutils/configure ;; darwin* | rhapsody*) -@@ -9446,7 +10029,7 @@ +@@ -9446,7 +10029,7 @@ if test -z "$aix_libpath"; then aix_libp # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) @@ -12103,7 +12115,7 @@ Index: binutils-2.21/binutils/configure hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no -@@ -9454,7 +10037,7 @@ +@@ -9454,7 +10037,7 @@ if test -z "$aix_libpath"; then aix_libp hpux9*) if test "$GCC" = yes; then @@ -12112,7 +12124,7 @@ Index: binutils-2.21/binutils/configure else archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi -@@ -9470,7 +10053,7 @@ +@@ -9470,7 +10053,7 @@ if test -z "$aix_libpath"; then aix_libp hpux10*) if test "$GCC" = yes && test "$with_gnu_ld" = no; then @@ -12121,7 +12133,7 @@ Index: binutils-2.21/binutils/configure else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi -@@ -9494,10 +10077,10 @@ +@@ -9494,10 +10077,10 @@ if test -z "$aix_libpath"; then aix_libp archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) @@ -12134,7 +12146,7 @@ Index: binutils-2.21/binutils/configure ;; esac else -@@ -9576,23 +10159,36 @@ +@@ -9576,23 +10159,36 @@ fi irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then @@ -12179,7 +12191,7 @@ Index: binutils-2.21/binutils/configure else archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' -@@ -9677,7 +10273,7 @@ +@@ -9677,7 +10273,7 @@ rm -f core conftest.err conftest.$ac_obj osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' @@ -12188,7 +12200,7 @@ Index: binutils-2.21/binutils/configure hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else allow_undefined_flag=' -expect_unresolved \*' -@@ -9696,9 +10292,9 @@ +@@ -9696,9 +10292,9 @@ rm -f core conftest.err conftest.$ac_obj no_undefined_flag=' -z defs' if test "$GCC" = yes; then wlarc='${wl}' @@ -12200,7 +12212,7 @@ Index: binutils-2.21/binutils/configure else case `$CC -V 2>&1` in *"Compilers 5.0"*) -@@ -10274,8 +10870,9 @@ +@@ -10274,8 +10870,9 @@ cygwin* | mingw* | pw32* | cegcc*) need_version=no need_lib_prefix=no @@ -12212,7 +12224,7 @@ Index: binutils-2.21/binutils/configure library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ -@@ -10308,13 +10905,71 @@ +@@ -10308,13 +10905,71 @@ cygwin* | mingw* | pw32* | cegcc*) library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac @@ -12285,7 +12297,7 @@ Index: binutils-2.21/binutils/configure # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; -@@ -10410,7 +11065,7 @@ +@@ -10410,7 +11065,7 @@ haiku*) soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=yes @@ -12294,7 +12306,7 @@ Index: binutils-2.21/binutils/configure hardcode_into_libs=yes ;; -@@ -11206,7 +11861,7 @@ +@@ -11206,7 +11861,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF @@ -12303,7 +12315,7 @@ Index: binutils-2.21/binutils/configure #include "confdefs.h" #if HAVE_DLFCN_H -@@ -11250,10 +11905,10 @@ +@@ -11250,10 +11905,10 @@ else /* When -fvisbility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) @@ -12316,7 +12328,7 @@ Index: binutils-2.21/binutils/configure int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); -@@ -11312,7 +11967,7 @@ +@@ -11312,7 +11967,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF @@ -12325,7 +12337,7 @@ Index: binutils-2.21/binutils/configure #include "confdefs.h" #if HAVE_DLFCN_H -@@ -11356,10 +12011,10 @@ +@@ -11356,10 +12011,10 @@ else /* When -fvisbility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) @@ -12338,7 +12350,7 @@ Index: binutils-2.21/binutils/configure int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); -@@ -14751,13 +15406,20 @@ +@@ -14751,13 +15406,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_ lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' @@ -12359,7 +12371,7 @@ Index: binutils-2.21/binutils/configure STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' -@@ -14772,14 +15434,17 @@ +@@ -14772,14 +15434,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$l lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' @@ -12378,7 +12390,7 @@ Index: binutils-2.21/binutils/configure DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' -@@ -14812,12 +15477,12 @@ +@@ -14812,12 +15477,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcod hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' @@ -12392,7 +12404,7 @@ Index: binutils-2.21/binutils/configure file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' -@@ -14872,8 +15537,13 @@ +@@ -14872,8 +15537,13 @@ reload_flag \ OBJDUMP \ deplibs_check_method \ file_magic_cmd \ @@ -12406,7 +12418,7 @@ Index: binutils-2.21/binutils/configure STRIP \ RANLIB \ CC \ -@@ -14883,12 +15553,14 @@ +@@ -14883,12 +15553,14 @@ lt_cv_sys_global_symbol_pipe \ lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ @@ -12422,7 +12434,7 @@ Index: binutils-2.21/binutils/configure DSYMUTIL \ NMEDIT \ LIPO \ -@@ -14904,7 +15576,6 @@ +@@ -14904,7 +15576,6 @@ no_undefined_flag \ hardcode_libdir_flag_spec \ hardcode_libdir_flag_spec_ld \ hardcode_libdir_separator \ @@ -12430,7 +12442,7 @@ Index: binutils-2.21/binutils/configure exclude_expsyms \ include_expsyms \ file_list_spec \ -@@ -14940,6 +15611,7 @@ +@@ -14940,6 +15611,7 @@ module_cmds \ module_expsym_cmds \ export_symbols_cmds \ prelink_cmds \ @@ -12438,7 +12450,7 @@ Index: binutils-2.21/binutils/configure postinstall_cmds \ postuninstall_cmds \ finish_cmds \ -@@ -15697,7 +16369,8 @@ +@@ -15697,7 +16369,8 @@ $as_echo X"$file" | # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, @@ -12448,7 +12460,7 @@ Index: binutils-2.21/binutils/configure # Written by Gordon Matzigkeit, 1996 # # This file is part of GNU Libtool. -@@ -15800,19 +16473,42 @@ +@@ -15800,19 +16473,42 @@ SP2NL=$lt_lt_SP2NL # turn newlines into spaces. NL2SP=$lt_lt_NL2SP @@ -12492,7 +12504,7 @@ Index: binutils-2.21/binutils/configure # A symbol stripping program. STRIP=$lt_STRIP -@@ -15842,6 +16538,12 @@ +@@ -15842,6 +16538,12 @@ global_symbol_to_c_name_address=$lt_lt_c # Transform the output of nm in a C name address pair when lib prefix is needed. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix @@ -12505,7 +12517,7 @@ Index: binutils-2.21/binutils/configure # The name of the directory that contains temporary libtool files. objdir=$objdir -@@ -15851,6 +16553,9 @@ +@@ -15851,6 +16553,9 @@ MAGIC_CMD=$MAGIC_CMD # Must we lock files when doing compilation? need_locks=$lt_need_locks @@ -12515,7 +12527,7 @@ Index: binutils-2.21/binutils/configure # Tool to manipulate archived DWARF debug symbol files on Mac OS X. DSYMUTIL=$lt_DSYMUTIL -@@ -15965,12 +16670,12 @@ +@@ -15965,12 +16670,12 @@ with_gcc=$GCC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag @@ -12531,7 +12543,7 @@ Index: binutils-2.21/binutils/configure # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static -@@ -16057,9 +16762,6 @@ +@@ -16057,9 +16762,6 @@ inherit_rpath=$inherit_rpath # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs @@ -12541,7 +12553,7 @@ Index: binutils-2.21/binutils/configure # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols -@@ -16075,6 +16777,9 @@ +@@ -16075,6 +16777,9 @@ include_expsyms=$lt_include_expsyms # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds @@ -12551,7 +12563,7 @@ Index: binutils-2.21/binutils/configure # Specify filename containing input files. file_list_spec=$lt_file_list_spec -@@ -16107,210 +16812,169 @@ +@@ -16107,210 +16812,169 @@ ltmain="$ac_aux_dir/ltmain.sh" # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? @@ -12924,9 +12936,9 @@ Index: binutils-2.21/binutils/configure Index: binutils-2.21/gas/configure =================================================================== ---- binutils-2.21.orig/gas/configure 2010-11-05 03:33:36.000000000 -0700 -+++ binutils-2.21/gas/configure 2011-01-07 10:49:16.426101000 -0800 -@@ -645,8 +645,11 @@ +--- binutils-2.21.orig/gas/configure ++++ binutils-2.21/gas/configure +@@ -645,8 +645,11 @@ OTOOL LIPO NMEDIT DSYMUTIL @@ -12938,7 +12950,7 @@ Index: binutils-2.21/gas/configure OBJDUMP LN_S NM -@@ -759,6 +762,7 @@ +@@ -759,6 +762,7 @@ enable_static with_pic enable_fast_install with_gnu_ld @@ -12946,7 +12958,7 @@ Index: binutils-2.21/gas/configure enable_libtool_lock enable_targets enable_checking -@@ -1420,6 +1424,8 @@ +@@ -1420,6 +1424,8 @@ Optional Packages: --with-pic try to use only PIC/non-PIC objects [default=use both] --with-gnu-ld assume the C compiler uses GNU ld [default=no] @@ -12955,7 +12967,7 @@ Index: binutils-2.21/gas/configure --with-zlib include zlib support (auto/yes/no) default=auto Some influential environment variables: -@@ -5135,8 +5141,8 @@ +@@ -5135,8 +5141,8 @@ esac @@ -12966,7 +12978,7 @@ Index: binutils-2.21/gas/configure -@@ -5176,7 +5182,7 @@ +@@ -5176,7 +5182,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 $as_echo_n "checking how to print strings... " >&6; } # Test print first, because it will be a builtin if present. @@ -12975,7 +12987,7 @@ Index: binutils-2.21/gas/configure test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='print -r --' elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then -@@ -5862,8 +5868,8 @@ +@@ -5862,8 +5868,8 @@ $as_echo_n "checking whether the shell u # Try some XSI features xsi_shell=no ( _lt_dummy="a/b/c" @@ -12986,7 +12998,7 @@ Index: binutils-2.21/gas/configure && eval 'test $(( 1 + 1 )) -eq 2 \ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ && xsi_shell=yes -@@ -5912,6 +5918,80 @@ +@@ -5912,6 +5918,80 @@ esac @@ -13067,7 +13079,7 @@ Index: binutils-2.21/gas/configure { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 $as_echo_n "checking for $LD option to reload object files... " >&6; } if test "${lt_cv_ld_reload_flag+set}" = set; then : -@@ -5928,6 +6008,11 @@ +@@ -5928,6 +6008,11 @@ case $reload_flag in esac reload_cmds='$LD$reload_flag -o $output$reload_objs' case $host_os in @@ -13079,7 +13091,7 @@ Index: binutils-2.21/gas/configure darwin*) if test "$GCC" = yes; then reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' -@@ -6096,7 +6181,8 @@ +@@ -6096,7 +6181,8 @@ mingw* | pw32*) lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else @@ -13089,7 +13101,7 @@ Index: binutils-2.21/gas/configure lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; -@@ -6250,6 +6336,21 @@ +@@ -6250,6 +6336,21 @@ esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 $as_echo "$lt_cv_deplibs_check_method" >&6; } @@ -13111,7 +13123,7 @@ Index: binutils-2.21/gas/configure file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown -@@ -6265,9 +6366,162 @@ +@@ -6265,9 +6366,162 @@ test -z "$deplibs_check_method" && depli @@ -13276,7 +13288,7 @@ Index: binutils-2.21/gas/configure { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_AR+set}" = set; then : -@@ -6283,7 +6537,7 @@ +@@ -6283,7 +6537,7 @@ do test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then @@ -13285,7 +13297,7 @@ Index: binutils-2.21/gas/configure $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi -@@ -6303,11 +6557,15 @@ +@@ -6303,11 +6557,15 @@ $as_echo "no" >&6; } fi @@ -13304,7 +13316,7 @@ Index: binutils-2.21/gas/configure { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : -@@ -6323,7 +6581,7 @@ +@@ -6323,7 +6581,7 @@ do test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then @@ -13313,7 +13325,7 @@ Index: binutils-2.21/gas/configure $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi -@@ -6342,6 +6600,10 @@ +@@ -6342,6 +6600,10 @@ else $as_echo "no" >&6; } fi @@ -13324,7 +13336,7 @@ Index: binutils-2.21/gas/configure if test "x$ac_ct_AR" = x; then AR="false" else -@@ -6353,16 +6615,72 @@ +@@ -6353,16 +6615,72 @@ ac_tool_warned=yes ;; esac AR=$ac_ct_AR fi @@ -13401,7 +13413,7 @@ Index: binutils-2.21/gas/configure -@@ -6704,8 +7022,8 @@ +@@ -6704,8 +7022,8 @@ esac lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address @@ -13412,7 +13424,7 @@ Index: binutils-2.21/gas/configure # Handle CRLF in mingw tool chain opt_cr= -@@ -6741,6 +7059,7 @@ +@@ -6741,6 +7059,7 @@ for ac_symprfx in "" "_"; do else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi @@ -13420,7 +13432,7 @@ Index: binutils-2.21/gas/configure # Check to see that the pipe works correctly. pipe_works=no -@@ -6782,6 +7101,18 @@ +@@ -6782,6 +7101,18 @@ _LT_EOF if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext @@ -13439,7 +13451,7 @@ Index: binutils-2.21/gas/configure #ifdef __cplusplus extern "C" { #endif -@@ -6793,7 +7124,7 @@ +@@ -6793,7 +7124,7 @@ _LT_EOF cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ @@ -13448,7 +13460,7 @@ Index: binutils-2.21/gas/configure const char *name; void *address; } -@@ -6819,8 +7150,8 @@ +@@ -6819,8 +7150,8 @@ static const void *lt_preloaded_setup() _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext @@ -13459,7 +13471,7 @@ Index: binutils-2.21/gas/configure LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 -@@ -6830,8 +7161,8 @@ +@@ -6830,8 +7161,8 @@ _LT_EOF test $ac_status = 0; } && test -s conftest${ac_exeext}; then pipe_works=yes fi @@ -13470,7 +13482,7 @@ Index: binutils-2.21/gas/configure else echo "cannot find nm_test_func in $nlist" >&5 fi -@@ -6868,6 +7199,19 @@ +@@ -6868,6 +7199,19 @@ else $as_echo "ok" >&6; } fi @@ -13490,7 +13502,7 @@ Index: binutils-2.21/gas/configure -@@ -6888,6 +7232,42 @@ +@@ -6888,6 +7232,42 @@ fi @@ -13533,7 +13545,7 @@ Index: binutils-2.21/gas/configure # Check whether --enable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then : -@@ -7082,6 +7462,123 @@ +@@ -7082,6 +7462,123 @@ esac need_locks="$enable_libtool_lock" @@ -13657,7 +13669,7 @@ Index: binutils-2.21/gas/configure case $host_os in rhapsody* | darwin*) -@@ -7645,6 +8142,8 @@ +@@ -7645,6 +8142,8 @@ _LT_EOF $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 echo "$AR cru libconftest.a conftest.o" >&5 $AR cru libconftest.a conftest.o 2>&5 @@ -13666,7 +13678,7 @@ Index: binutils-2.21/gas/configure cat > conftest.c << _LT_EOF int main() { return 0;} _LT_EOF -@@ -7840,7 +8339,8 @@ +@@ -7840,7 +8339,8 @@ fi LIBTOOL_DEPS="$ltmain" # Always use our own libtool. @@ -13676,7 +13688,7 @@ Index: binutils-2.21/gas/configure -@@ -7929,7 +8429,7 @@ +@@ -7929,7 +8429,7 @@ aix3*) esac # Global variables: @@ -13685,7 +13697,7 @@ Index: binutils-2.21/gas/configure can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, -@@ -8227,8 +8727,6 @@ +@@ -8227,8 +8727,6 @@ fi lt_prog_compiler_pic= lt_prog_compiler_static= @@ -13694,7 +13706,7 @@ Index: binutils-2.21/gas/configure if test "$GCC" = yes; then lt_prog_compiler_wl='-Wl,' -@@ -8393,6 +8891,12 @@ +@@ -8393,6 +8891,12 @@ $as_echo_n "checking for $compiler optio lt_prog_compiler_pic='--shared' lt_prog_compiler_static='--static' ;; @@ -13707,7 +13719,7 @@ Index: binutils-2.21/gas/configure pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) -@@ -8455,7 +8959,7 @@ +@@ -8455,7 +8959,7 @@ $as_echo_n "checking for $compiler optio lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' case $cc_basename in @@ -13716,7 +13728,7 @@ Index: binutils-2.21/gas/configure lt_prog_compiler_wl='-Qoption ld ';; *) lt_prog_compiler_wl='-Wl,';; -@@ -8512,13 +9016,17 @@ +@@ -8512,13 +9016,17 @@ case $host_os in lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" ;; esac @@ -13740,7 +13752,7 @@ Index: binutils-2.21/gas/configure # # Check to make sure the PIC flag actually works. -@@ -8579,6 +9087,11 @@ +@@ -8579,6 +9087,11 @@ fi @@ -13752,7 +13764,7 @@ Index: binutils-2.21/gas/configure # # Check to make sure the static flag actually works. # -@@ -8929,7 +9442,8 @@ +@@ -8929,7 +9442,8 @@ _LT_EOF allow_undefined_flag=unsupported always_export_symbols=no enable_shared_with_static_runtimes=yes @@ -13762,7 +13774,7 @@ Index: binutils-2.21/gas/configure if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' -@@ -8977,7 +9491,7 @@ +@@ -8977,7 +9491,7 @@ _LT_EOF if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test "$tmp_diet" = no then @@ -13771,7 +13783,7 @@ Index: binutils-2.21/gas/configure tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler -@@ -9028,12 +9542,12 @@ +@@ -9028,12 +9542,12 @@ _LT_EOF whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' hardcode_libdir_flag_spec= hardcode_libdir_flag_spec_ld='-rpath $libdir' @@ -13786,7 +13798,7 @@ Index: binutils-2.21/gas/configure fi ;; esac -@@ -9047,8 +9561,8 @@ +@@ -9047,8 +9561,8 @@ _LT_EOF archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else @@ -13797,7 +13809,7 @@ Index: binutils-2.21/gas/configure fi ;; -@@ -9066,8 +9580,8 @@ +@@ -9066,8 +9580,8 @@ _LT_EOF _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then @@ -13808,7 +13820,7 @@ Index: binutils-2.21/gas/configure else ld_shlibs=no fi -@@ -9113,8 +9627,8 @@ +@@ -9113,8 +9627,8 @@ _LT_EOF *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then @@ -13819,7 +13831,7 @@ Index: binutils-2.21/gas/configure else ld_shlibs=no fi -@@ -9244,7 +9758,13 @@ +@@ -9244,7 +9758,13 @@ _LT_EOF allow_undefined_flag='-berok' # Determine the default libpath from the value encoded in an # empty executable. @@ -13834,7 +13846,7 @@ Index: binutils-2.21/gas/configure /* end confdefs.h. */ int -@@ -9257,22 +9777,29 @@ +@@ -9257,22 +9777,29 @@ main () _ACEOF if ac_fn_c_try_link "$LINENO"; then : @@ -13877,7 +13889,7 @@ Index: binutils-2.21/gas/configure hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" -@@ -9284,7 +9811,13 @@ +@@ -9284,7 +9811,13 @@ if test -z "$aix_libpath"; then aix_libp else # Determine the default libpath from the value encoded in an # empty executable. @@ -13892,7 +13904,7 @@ Index: binutils-2.21/gas/configure /* end confdefs.h. */ int -@@ -9297,22 +9830,29 @@ +@@ -9297,22 +9830,29 @@ main () _ACEOF if ac_fn_c_try_link "$LINENO"; then : @@ -13935,7 +13947,7 @@ Index: binutils-2.21/gas/configure hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, -@@ -9357,20 +9897,63 @@ +@@ -9357,20 +9897,63 @@ if test -z "$aix_libpath"; then aix_libp # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. @@ -14013,7 +14025,7 @@ Index: binutils-2.21/gas/configure ;; darwin* | rhapsody*) -@@ -9435,7 +10018,7 @@ +@@ -9435,7 +10018,7 @@ if test -z "$aix_libpath"; then aix_libp # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) @@ -14022,7 +14034,7 @@ Index: binutils-2.21/gas/configure hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no -@@ -9443,7 +10026,7 @@ +@@ -9443,7 +10026,7 @@ if test -z "$aix_libpath"; then aix_libp hpux9*) if test "$GCC" = yes; then @@ -14031,7 +14043,7 @@ Index: binutils-2.21/gas/configure else archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi -@@ -9459,7 +10042,7 @@ +@@ -9459,7 +10042,7 @@ if test -z "$aix_libpath"; then aix_libp hpux10*) if test "$GCC" = yes && test "$with_gnu_ld" = no; then @@ -14040,7 +14052,7 @@ Index: binutils-2.21/gas/configure else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi -@@ -9483,10 +10066,10 @@ +@@ -9483,10 +10066,10 @@ if test -z "$aix_libpath"; then aix_libp archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) @@ -14053,7 +14065,7 @@ Index: binutils-2.21/gas/configure ;; esac else -@@ -9565,23 +10148,36 @@ +@@ -9565,23 +10148,36 @@ fi irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then @@ -14098,7 +14110,7 @@ Index: binutils-2.21/gas/configure else archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' -@@ -9666,7 +10262,7 @@ +@@ -9666,7 +10262,7 @@ rm -f core conftest.err conftest.$ac_obj osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' @@ -14107,7 +14119,7 @@ Index: binutils-2.21/gas/configure hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else allow_undefined_flag=' -expect_unresolved \*' -@@ -9685,9 +10281,9 @@ +@@ -9685,9 +10281,9 @@ rm -f core conftest.err conftest.$ac_obj no_undefined_flag=' -z defs' if test "$GCC" = yes; then wlarc='${wl}' @@ -14119,7 +14131,7 @@ Index: binutils-2.21/gas/configure else case `$CC -V 2>&1` in *"Compilers 5.0"*) -@@ -10263,8 +10859,9 @@ +@@ -10263,8 +10859,9 @@ cygwin* | mingw* | pw32* | cegcc*) need_version=no need_lib_prefix=no @@ -14131,7 +14143,7 @@ Index: binutils-2.21/gas/configure library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ -@@ -10297,13 +10894,71 @@ +@@ -10297,13 +10894,71 @@ cygwin* | mingw* | pw32* | cegcc*) library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac @@ -14204,7 +14216,7 @@ Index: binutils-2.21/gas/configure # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; -@@ -10399,7 +11054,7 @@ +@@ -10399,7 +11054,7 @@ haiku*) soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=yes @@ -14213,7 +14225,7 @@ Index: binutils-2.21/gas/configure hardcode_into_libs=yes ;; -@@ -11195,7 +11850,7 @@ +@@ -11195,7 +11850,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF @@ -14222,7 +14234,7 @@ Index: binutils-2.21/gas/configure #include "confdefs.h" #if HAVE_DLFCN_H -@@ -11239,10 +11894,10 @@ +@@ -11239,10 +11894,10 @@ else /* When -fvisbility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) @@ -14235,7 +14247,7 @@ Index: binutils-2.21/gas/configure int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); -@@ -11301,7 +11956,7 @@ +@@ -11301,7 +11956,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF @@ -14244,7 +14256,7 @@ Index: binutils-2.21/gas/configure #include "confdefs.h" #if HAVE_DLFCN_H -@@ -11345,10 +12000,10 @@ +@@ -11345,10 +12000,10 @@ else /* When -fvisbility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) @@ -14257,7 +14269,7 @@ Index: binutils-2.21/gas/configure int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); -@@ -14941,13 +15596,20 @@ +@@ -14941,13 +15596,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_ lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' @@ -14278,7 +14290,7 @@ Index: binutils-2.21/gas/configure STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' -@@ -14962,14 +15624,17 @@ +@@ -14962,14 +15624,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$l lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' @@ -14297,7 +14309,7 @@ Index: binutils-2.21/gas/configure DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' -@@ -15002,12 +15667,12 @@ +@@ -15002,12 +15667,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcod hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' @@ -14311,7 +14323,7 @@ Index: binutils-2.21/gas/configure file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' -@@ -15062,8 +15727,13 @@ +@@ -15062,8 +15727,13 @@ reload_flag \ OBJDUMP \ deplibs_check_method \ file_magic_cmd \ @@ -14325,7 +14337,7 @@ Index: binutils-2.21/gas/configure STRIP \ RANLIB \ CC \ -@@ -15073,12 +15743,14 @@ +@@ -15073,12 +15743,14 @@ lt_cv_sys_global_symbol_pipe \ lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ @@ -14341,7 +14353,7 @@ Index: binutils-2.21/gas/configure DSYMUTIL \ NMEDIT \ LIPO \ -@@ -15094,7 +15766,6 @@ +@@ -15094,7 +15766,6 @@ no_undefined_flag \ hardcode_libdir_flag_spec \ hardcode_libdir_flag_spec_ld \ hardcode_libdir_separator \ @@ -14349,7 +14361,7 @@ Index: binutils-2.21/gas/configure exclude_expsyms \ include_expsyms \ file_list_spec \ -@@ -15130,6 +15801,7 @@ +@@ -15130,6 +15801,7 @@ module_cmds \ module_expsym_cmds \ export_symbols_cmds \ prelink_cmds \ @@ -14357,7 +14369,7 @@ Index: binutils-2.21/gas/configure postinstall_cmds \ postuninstall_cmds \ finish_cmds \ -@@ -15894,7 +16566,8 @@ +@@ -15894,7 +16566,8 @@ $as_echo X"$file" | # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, @@ -14367,7 +14379,7 @@ Index: binutils-2.21/gas/configure # Written by Gordon Matzigkeit, 1996 # # This file is part of GNU Libtool. -@@ -15997,19 +16670,42 @@ +@@ -15997,19 +16670,42 @@ SP2NL=$lt_lt_SP2NL # turn newlines into spaces. NL2SP=$lt_lt_NL2SP @@ -14411,7 +14423,7 @@ Index: binutils-2.21/gas/configure # A symbol stripping program. STRIP=$lt_STRIP -@@ -16039,6 +16735,12 @@ +@@ -16039,6 +16735,12 @@ global_symbol_to_c_name_address=$lt_lt_c # Transform the output of nm in a C name address pair when lib prefix is needed. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix @@ -14424,7 +14436,7 @@ Index: binutils-2.21/gas/configure # The name of the directory that contains temporary libtool files. objdir=$objdir -@@ -16048,6 +16750,9 @@ +@@ -16048,6 +16750,9 @@ MAGIC_CMD=$MAGIC_CMD # Must we lock files when doing compilation? need_locks=$lt_need_locks @@ -14434,7 +14446,7 @@ Index: binutils-2.21/gas/configure # Tool to manipulate archived DWARF debug symbol files on Mac OS X. DSYMUTIL=$lt_DSYMUTIL -@@ -16162,12 +16867,12 @@ +@@ -16162,12 +16867,12 @@ with_gcc=$GCC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag @@ -14450,7 +14462,7 @@ Index: binutils-2.21/gas/configure # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static -@@ -16254,9 +16959,6 @@ +@@ -16254,9 +16959,6 @@ inherit_rpath=$inherit_rpath # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs @@ -14460,7 +14472,7 @@ Index: binutils-2.21/gas/configure # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols -@@ -16272,6 +16974,9 @@ +@@ -16272,6 +16974,9 @@ include_expsyms=$lt_include_expsyms # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds @@ -14470,7 +14482,7 @@ Index: binutils-2.21/gas/configure # Specify filename containing input files. file_list_spec=$lt_file_list_spec -@@ -16304,210 +17009,169 @@ +@@ -16304,210 +17009,169 @@ ltmain="$ac_aux_dir/ltmain.sh" # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? @@ -14843,9 +14855,9 @@ Index: binutils-2.21/gas/configure Index: binutils-2.21/gprof/configure =================================================================== ---- binutils-2.21.orig/gprof/configure 2011-01-07 10:49:15.956101000 -0800 -+++ binutils-2.21/gprof/configure 2011-01-07 10:49:16.436101000 -0800 -@@ -629,8 +629,11 @@ +--- binutils-2.21.orig/gprof/configure ++++ binutils-2.21/gprof/configure +@@ -629,8 +629,11 @@ OTOOL LIPO NMEDIT DSYMUTIL @@ -14857,7 +14869,7 @@ Index: binutils-2.21/gprof/configure OBJDUMP LN_S NM -@@ -743,6 +746,7 @@ +@@ -743,6 +746,7 @@ enable_static with_pic enable_fast_install with_gnu_ld @@ -14865,7 +14877,7 @@ Index: binutils-2.21/gprof/configure enable_libtool_lock enable_nls enable_maintainer_mode -@@ -1397,6 +1401,8 @@ +@@ -1397,6 +1401,8 @@ Optional Packages: --with-pic try to use only PIC/non-PIC objects [default=use both] --with-gnu-ld assume the C compiler uses GNU ld [default=no] @@ -14874,7 +14886,7 @@ Index: binutils-2.21/gprof/configure Some influential environment variables: CC C compiler command -@@ -5065,8 +5071,8 @@ +@@ -5065,8 +5071,8 @@ esac @@ -14885,7 +14897,7 @@ Index: binutils-2.21/gprof/configure -@@ -5106,7 +5112,7 @@ +@@ -5106,7 +5112,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 $as_echo_n "checking how to print strings... " >&6; } # Test print first, because it will be a builtin if present. @@ -14894,7 +14906,7 @@ Index: binutils-2.21/gprof/configure test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='print -r --' elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then -@@ -5792,8 +5798,8 @@ +@@ -5792,8 +5798,8 @@ $as_echo_n "checking whether the shell u # Try some XSI features xsi_shell=no ( _lt_dummy="a/b/c" @@ -14905,7 +14917,7 @@ Index: binutils-2.21/gprof/configure && eval 'test $(( 1 + 1 )) -eq 2 \ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ && xsi_shell=yes -@@ -5842,6 +5848,80 @@ +@@ -5842,6 +5848,80 @@ esac @@ -14986,7 +14998,7 @@ Index: binutils-2.21/gprof/configure { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 $as_echo_n "checking for $LD option to reload object files... " >&6; } if test "${lt_cv_ld_reload_flag+set}" = set; then : -@@ -5858,6 +5938,11 @@ +@@ -5858,6 +5938,11 @@ case $reload_flag in esac reload_cmds='$LD$reload_flag -o $output$reload_objs' case $host_os in @@ -14998,7 +15010,7 @@ Index: binutils-2.21/gprof/configure darwin*) if test "$GCC" = yes; then reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' -@@ -6026,7 +6111,8 @@ +@@ -6026,7 +6111,8 @@ mingw* | pw32*) lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else @@ -15008,7 +15020,7 @@ Index: binutils-2.21/gprof/configure lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; -@@ -6103,11 +6189,6 @@ +@@ -6103,11 +6189,6 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu) lt_cv_deplibs_check_method=pass_all ;; @@ -15020,7 +15032,7 @@ Index: binutils-2.21/gprof/configure netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' -@@ -6185,6 +6266,21 @@ +@@ -6185,6 +6266,21 @@ esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 $as_echo "$lt_cv_deplibs_check_method" >&6; } @@ -15042,7 +15054,7 @@ Index: binutils-2.21/gprof/configure file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown -@@ -6200,9 +6296,162 @@ +@@ -6200,9 +6296,162 @@ test -z "$deplibs_check_method" && depli @@ -15207,7 +15219,7 @@ Index: binutils-2.21/gprof/configure { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_AR+set}" = set; then : -@@ -6218,7 +6467,7 @@ +@@ -6218,7 +6467,7 @@ do test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then @@ -15216,7 +15228,7 @@ Index: binutils-2.21/gprof/configure $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi -@@ -6238,11 +6487,15 @@ +@@ -6238,11 +6487,15 @@ $as_echo "no" >&6; } fi @@ -15235,7 +15247,7 @@ Index: binutils-2.21/gprof/configure { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : -@@ -6258,7 +6511,7 @@ +@@ -6258,7 +6511,7 @@ do test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then @@ -15244,7 +15256,7 @@ Index: binutils-2.21/gprof/configure $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi -@@ -6277,6 +6530,10 @@ +@@ -6277,6 +6530,10 @@ else $as_echo "no" >&6; } fi @@ -15255,7 +15267,7 @@ Index: binutils-2.21/gprof/configure if test "x$ac_ct_AR" = x; then AR="false" else -@@ -6288,16 +6545,72 @@ +@@ -6288,16 +6545,72 @@ ac_tool_warned=yes ;; esac AR=$ac_ct_AR fi @@ -15332,7 +15344,7 @@ Index: binutils-2.21/gprof/configure -@@ -6639,8 +6952,8 @@ +@@ -6639,8 +6952,8 @@ esac lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address @@ -15343,7 +15355,7 @@ Index: binutils-2.21/gprof/configure # Handle CRLF in mingw tool chain opt_cr= -@@ -6676,6 +6989,7 @@ +@@ -6676,6 +6989,7 @@ for ac_symprfx in "" "_"; do else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi @@ -15351,7 +15363,7 @@ Index: binutils-2.21/gprof/configure # Check to see that the pipe works correctly. pipe_works=no -@@ -6717,6 +7031,18 @@ +@@ -6717,6 +7031,18 @@ _LT_EOF if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext @@ -15370,7 +15382,7 @@ Index: binutils-2.21/gprof/configure #ifdef __cplusplus extern "C" { #endif -@@ -6728,7 +7054,7 @@ +@@ -6728,7 +7054,7 @@ _LT_EOF cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ @@ -15379,7 +15391,7 @@ Index: binutils-2.21/gprof/configure const char *name; void *address; } -@@ -6754,8 +7080,8 @@ +@@ -6754,8 +7080,8 @@ static const void *lt_preloaded_setup() _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext @@ -15390,7 +15402,7 @@ Index: binutils-2.21/gprof/configure LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 -@@ -6765,8 +7091,8 @@ +@@ -6765,8 +7091,8 @@ _LT_EOF test $ac_status = 0; } && test -s conftest${ac_exeext}; then pipe_works=yes fi @@ -15401,7 +15413,7 @@ Index: binutils-2.21/gprof/configure else echo "cannot find nm_test_func in $nlist" >&5 fi -@@ -6803,6 +7129,17 @@ +@@ -6803,6 +7129,17 @@ else $as_echo "ok" >&6; } fi @@ -15419,7 +15431,7 @@ Index: binutils-2.21/gprof/configure -@@ -6824,6 +7161,44 @@ +@@ -6824,6 +7161,44 @@ fi @@ -15464,7 +15476,7 @@ Index: binutils-2.21/gprof/configure # Check whether --enable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then : enableval=$enable_libtool_lock; -@@ -7017,6 +7392,123 @@ +@@ -7017,6 +7392,123 @@ esac need_locks="$enable_libtool_lock" @@ -15588,7 +15600,7 @@ Index: binutils-2.21/gprof/configure case $host_os in rhapsody* | darwin*) -@@ -7580,6 +8072,8 @@ +@@ -7580,6 +8072,8 @@ _LT_EOF $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 echo "$AR cru libconftest.a conftest.o" >&5 $AR cru libconftest.a conftest.o 2>&5 @@ -15597,7 +15609,7 @@ Index: binutils-2.21/gprof/configure cat > conftest.c << _LT_EOF int main() { return 0;} _LT_EOF -@@ -7775,7 +8269,8 @@ +@@ -7775,7 +8269,8 @@ fi LIBTOOL_DEPS="$ltmain" # Always use our own libtool. @@ -15607,7 +15619,7 @@ Index: binutils-2.21/gprof/configure -@@ -7864,7 +8359,7 @@ +@@ -7864,7 +8359,7 @@ aix3*) esac # Global variables: @@ -15616,7 +15628,7 @@ Index: binutils-2.21/gprof/configure can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, -@@ -8162,8 +8657,6 @@ +@@ -8162,8 +8657,6 @@ fi lt_prog_compiler_pic= lt_prog_compiler_static= @@ -15625,7 +15637,7 @@ Index: binutils-2.21/gprof/configure if test "$GCC" = yes; then lt_prog_compiler_wl='-Wl,' -@@ -8328,6 +8821,12 @@ +@@ -8328,6 +8821,12 @@ $as_echo_n "checking for $compiler optio lt_prog_compiler_pic='--shared' lt_prog_compiler_static='--static' ;; @@ -15638,7 +15650,7 @@ Index: binutils-2.21/gprof/configure pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) -@@ -8390,7 +8889,7 @@ +@@ -8390,7 +8889,7 @@ $as_echo_n "checking for $compiler optio lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' case $cc_basename in @@ -15647,7 +15659,7 @@ Index: binutils-2.21/gprof/configure lt_prog_compiler_wl='-Qoption ld ';; *) lt_prog_compiler_wl='-Wl,';; -@@ -8447,13 +8946,17 @@ +@@ -8447,13 +8946,17 @@ case $host_os in lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" ;; esac @@ -15671,7 +15683,7 @@ Index: binutils-2.21/gprof/configure # # Check to make sure the PIC flag actually works. -@@ -8514,6 +9017,11 @@ +@@ -8514,6 +9017,11 @@ fi @@ -15683,7 +15695,7 @@ Index: binutils-2.21/gprof/configure # # Check to make sure the static flag actually works. # -@@ -8864,7 +9372,8 @@ +@@ -8864,7 +9372,8 @@ _LT_EOF allow_undefined_flag=unsupported always_export_symbols=no enable_shared_with_static_runtimes=yes @@ -15693,7 +15705,7 @@ Index: binutils-2.21/gprof/configure if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' -@@ -8912,7 +9421,7 @@ +@@ -8912,7 +9421,7 @@ _LT_EOF if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test "$tmp_diet" = no then @@ -15702,7 +15714,7 @@ Index: binutils-2.21/gprof/configure tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler -@@ -8963,12 +9472,12 @@ +@@ -8963,12 +9472,12 @@ _LT_EOF whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' hardcode_libdir_flag_spec= hardcode_libdir_flag_spec_ld='-rpath $libdir' @@ -15717,7 +15729,7 @@ Index: binutils-2.21/gprof/configure fi ;; esac -@@ -8982,8 +9491,8 @@ +@@ -8982,8 +9491,8 @@ _LT_EOF archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else @@ -15728,7 +15740,7 @@ Index: binutils-2.21/gprof/configure fi ;; -@@ -9001,8 +9510,8 @@ +@@ -9001,8 +9510,8 @@ _LT_EOF _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then @@ -15739,7 +15751,7 @@ Index: binutils-2.21/gprof/configure else ld_shlibs=no fi -@@ -9048,8 +9557,8 @@ +@@ -9048,8 +9557,8 @@ _LT_EOF *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then @@ -15750,7 +15762,7 @@ Index: binutils-2.21/gprof/configure else ld_shlibs=no fi -@@ -9179,7 +9688,13 @@ +@@ -9179,7 +9688,13 @@ _LT_EOF allow_undefined_flag='-berok' # Determine the default libpath from the value encoded in an # empty executable. @@ -15765,7 +15777,7 @@ Index: binutils-2.21/gprof/configure /* end confdefs.h. */ int -@@ -9192,22 +9707,29 @@ +@@ -9192,22 +9707,29 @@ main () _ACEOF if ac_fn_c_try_link "$LINENO"; then : @@ -15808,7 +15820,7 @@ Index: binutils-2.21/gprof/configure hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" -@@ -9219,7 +9741,13 @@ +@@ -9219,7 +9741,13 @@ if test -z "$aix_libpath"; then aix_libp else # Determine the default libpath from the value encoded in an # empty executable. @@ -15823,7 +15835,7 @@ Index: binutils-2.21/gprof/configure /* end confdefs.h. */ int -@@ -9232,22 +9760,29 @@ +@@ -9232,22 +9760,29 @@ main () _ACEOF if ac_fn_c_try_link "$LINENO"; then : @@ -15866,7 +15878,7 @@ Index: binutils-2.21/gprof/configure hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, -@@ -9292,20 +9827,63 @@ +@@ -9292,20 +9827,63 @@ if test -z "$aix_libpath"; then aix_libp # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. @@ -15944,7 +15956,7 @@ Index: binutils-2.21/gprof/configure ;; darwin* | rhapsody*) -@@ -9370,7 +9948,7 @@ +@@ -9370,7 +9948,7 @@ if test -z "$aix_libpath"; then aix_libp # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) @@ -15953,7 +15965,7 @@ Index: binutils-2.21/gprof/configure hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no -@@ -9378,7 +9956,7 @@ +@@ -9378,7 +9956,7 @@ if test -z "$aix_libpath"; then aix_libp hpux9*) if test "$GCC" = yes; then @@ -15962,7 +15974,7 @@ Index: binutils-2.21/gprof/configure else archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi -@@ -9394,7 +9972,7 @@ +@@ -9394,7 +9972,7 @@ if test -z "$aix_libpath"; then aix_libp hpux10*) if test "$GCC" = yes && test "$with_gnu_ld" = no; then @@ -15971,7 +15983,7 @@ Index: binutils-2.21/gprof/configure else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi -@@ -9418,10 +9996,10 @@ +@@ -9418,10 +9996,10 @@ if test -z "$aix_libpath"; then aix_libp archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) @@ -15984,7 +15996,7 @@ Index: binutils-2.21/gprof/configure ;; esac else -@@ -9500,23 +10078,36 @@ +@@ -9500,23 +10078,36 @@ fi irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then @@ -16029,7 +16041,7 @@ Index: binutils-2.21/gprof/configure else archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' -@@ -9601,7 +10192,7 @@ +@@ -9601,7 +10192,7 @@ rm -f core conftest.err conftest.$ac_obj osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' @@ -16038,7 +16050,7 @@ Index: binutils-2.21/gprof/configure hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else allow_undefined_flag=' -expect_unresolved \*' -@@ -9620,9 +10211,9 @@ +@@ -9620,9 +10211,9 @@ rm -f core conftest.err conftest.$ac_obj no_undefined_flag=' -z defs' if test "$GCC" = yes; then wlarc='${wl}' @@ -16050,7 +16062,7 @@ Index: binutils-2.21/gprof/configure else case `$CC -V 2>&1` in *"Compilers 5.0"*) -@@ -10198,8 +10789,9 @@ +@@ -10198,8 +10789,9 @@ cygwin* | mingw* | pw32* | cegcc*) need_version=no need_lib_prefix=no @@ -16062,7 +16074,7 @@ Index: binutils-2.21/gprof/configure library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ -@@ -10232,13 +10824,71 @@ +@@ -10232,13 +10824,71 @@ cygwin* | mingw* | pw32* | cegcc*) library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac @@ -16135,7 +16147,7 @@ Index: binutils-2.21/gprof/configure # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; -@@ -10334,7 +10984,7 @@ +@@ -10334,7 +10984,7 @@ haiku*) soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=yes @@ -16144,7 +16156,7 @@ Index: binutils-2.21/gprof/configure hardcode_into_libs=yes ;; -@@ -11130,7 +11780,7 @@ +@@ -11130,7 +11780,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF @@ -16153,7 +16165,7 @@ Index: binutils-2.21/gprof/configure #include "confdefs.h" #if HAVE_DLFCN_H -@@ -11174,10 +11824,10 @@ +@@ -11174,10 +11824,10 @@ else /* When -fvisbility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) @@ -16166,7 +16178,7 @@ Index: binutils-2.21/gprof/configure int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); -@@ -11236,7 +11886,7 @@ +@@ -11236,7 +11886,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF @@ -16175,7 +16187,7 @@ Index: binutils-2.21/gprof/configure #include "confdefs.h" #if HAVE_DLFCN_H -@@ -11280,10 +11930,10 @@ +@@ -11280,10 +11930,10 @@ else /* When -fvisbility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) @@ -16188,7 +16200,7 @@ Index: binutils-2.21/gprof/configure int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); -@@ -12825,13 +13475,20 @@ +@@ -12825,13 +13475,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_ lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' @@ -16209,7 +16221,7 @@ Index: binutils-2.21/gprof/configure STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' -@@ -12846,14 +13503,17 @@ +@@ -12846,14 +13503,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$l lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' @@ -16228,7 +16240,7 @@ Index: binutils-2.21/gprof/configure DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' -@@ -12886,12 +13546,12 @@ +@@ -12886,12 +13546,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcod hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' @@ -16242,7 +16254,7 @@ Index: binutils-2.21/gprof/configure file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' -@@ -12946,8 +13606,13 @@ +@@ -12946,8 +13606,13 @@ reload_flag \ OBJDUMP \ deplibs_check_method \ file_magic_cmd \ @@ -16256,7 +16268,7 @@ Index: binutils-2.21/gprof/configure STRIP \ RANLIB \ CC \ -@@ -12957,12 +13622,14 @@ +@@ -12957,12 +13622,14 @@ lt_cv_sys_global_symbol_pipe \ lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ @@ -16272,7 +16284,7 @@ Index: binutils-2.21/gprof/configure DSYMUTIL \ NMEDIT \ LIPO \ -@@ -12978,7 +13645,6 @@ +@@ -12978,7 +13645,6 @@ no_undefined_flag \ hardcode_libdir_flag_spec \ hardcode_libdir_flag_spec_ld \ hardcode_libdir_separator \ @@ -16280,7 +16292,7 @@ Index: binutils-2.21/gprof/configure exclude_expsyms \ include_expsyms \ file_list_spec \ -@@ -13014,6 +13680,7 @@ +@@ -13014,6 +13680,7 @@ module_cmds \ module_expsym_cmds \ export_symbols_cmds \ prelink_cmds \ @@ -16288,7 +16300,7 @@ Index: binutils-2.21/gprof/configure postinstall_cmds \ postuninstall_cmds \ finish_cmds \ -@@ -13770,7 +14437,8 @@ +@@ -13770,7 +14437,8 @@ $as_echo X"$file" | # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, @@ -16298,7 +16310,7 @@ Index: binutils-2.21/gprof/configure # Written by Gordon Matzigkeit, 1996 # # This file is part of GNU Libtool. -@@ -13873,19 +14541,42 @@ +@@ -13873,19 +14541,42 @@ SP2NL=$lt_lt_SP2NL # turn newlines into spaces. NL2SP=$lt_lt_NL2SP @@ -16342,7 +16354,7 @@ Index: binutils-2.21/gprof/configure # A symbol stripping program. STRIP=$lt_STRIP -@@ -13915,6 +14606,12 @@ +@@ -13915,6 +14606,12 @@ global_symbol_to_c_name_address=$lt_lt_c # Transform the output of nm in a C name address pair when lib prefix is needed. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix @@ -16355,7 +16367,7 @@ Index: binutils-2.21/gprof/configure # The name of the directory that contains temporary libtool files. objdir=$objdir -@@ -13924,6 +14621,9 @@ +@@ -13924,6 +14621,9 @@ MAGIC_CMD=$MAGIC_CMD # Must we lock files when doing compilation? need_locks=$lt_need_locks @@ -16365,7 +16377,7 @@ Index: binutils-2.21/gprof/configure # Tool to manipulate archived DWARF debug symbol files on Mac OS X. DSYMUTIL=$lt_DSYMUTIL -@@ -14038,12 +14738,12 @@ +@@ -14038,12 +14738,12 @@ with_gcc=$GCC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag @@ -16381,7 +16393,7 @@ Index: binutils-2.21/gprof/configure # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static -@@ -14130,9 +14830,6 @@ +@@ -14130,9 +14830,6 @@ inherit_rpath=$inherit_rpath # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs @@ -16391,7 +16403,7 @@ Index: binutils-2.21/gprof/configure # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols -@@ -14148,6 +14845,9 @@ +@@ -14148,6 +14845,9 @@ include_expsyms=$lt_include_expsyms # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds @@ -16401,7 +16413,7 @@ Index: binutils-2.21/gprof/configure # Specify filename containing input files. file_list_spec=$lt_file_list_spec -@@ -14180,210 +14880,169 @@ +@@ -14180,210 +14880,169 @@ ltmain="$ac_aux_dir/ltmain.sh" # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? @@ -16774,9 +16786,9 @@ Index: binutils-2.21/gprof/configure Index: binutils-2.21/ld/configure =================================================================== ---- binutils-2.21.orig/ld/configure 2010-11-23 05:50:32.000000000 -0800 -+++ binutils-2.21/ld/configure 2011-01-07 10:49:16.436101000 -0800 -@@ -643,8 +643,11 @@ +--- binutils-2.21.orig/ld/configure ++++ binutils-2.21/ld/configure +@@ -643,8 +643,11 @@ OTOOL LIPO NMEDIT DSYMUTIL @@ -16788,7 +16800,7 @@ Index: binutils-2.21/ld/configure OBJDUMP LN_S NM -@@ -776,6 +779,7 @@ +@@ -776,6 +779,7 @@ enable_static with_pic enable_fast_install with_gnu_ld @@ -16796,7 +16808,7 @@ Index: binutils-2.21/ld/configure enable_libtool_lock enable_nls ' -@@ -1436,6 +1440,8 @@ +@@ -1436,6 +1440,8 @@ Optional Packages: --with-pic try to use only PIC/non-PIC objects [default=use both] --with-gnu-ld assume the C compiler uses GNU ld [default=no] @@ -16805,7 +16817,7 @@ Index: binutils-2.21/ld/configure Some influential environment variables: CC C compiler command -@@ -5562,8 +5568,8 @@ +@@ -5562,8 +5568,8 @@ esac @@ -16816,7 +16828,7 @@ Index: binutils-2.21/ld/configure -@@ -5603,7 +5609,7 @@ +@@ -5603,7 +5609,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 $as_echo_n "checking how to print strings... " >&6; } # Test print first, because it will be a builtin if present. @@ -16825,7 +16837,7 @@ Index: binutils-2.21/ld/configure test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='print -r --' elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then -@@ -6289,8 +6295,8 @@ +@@ -6289,8 +6295,8 @@ $as_echo_n "checking whether the shell u # Try some XSI features xsi_shell=no ( _lt_dummy="a/b/c" @@ -16836,7 +16848,7 @@ Index: binutils-2.21/ld/configure && eval 'test $(( 1 + 1 )) -eq 2 \ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ && xsi_shell=yes -@@ -6339,6 +6345,80 @@ +@@ -6339,6 +6345,80 @@ esac @@ -16917,7 +16929,7 @@ Index: binutils-2.21/ld/configure { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 $as_echo_n "checking for $LD option to reload object files... " >&6; } if test "${lt_cv_ld_reload_flag+set}" = set; then : -@@ -6355,6 +6435,11 @@ +@@ -6355,6 +6435,11 @@ case $reload_flag in esac reload_cmds='$LD$reload_flag -o $output$reload_objs' case $host_os in @@ -16929,7 +16941,7 @@ Index: binutils-2.21/ld/configure darwin*) if test "$GCC" = yes; then reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' -@@ -6523,7 +6608,8 @@ +@@ -6523,7 +6608,8 @@ mingw* | pw32*) lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else @@ -16939,7 +16951,7 @@ Index: binutils-2.21/ld/configure lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; -@@ -6677,6 +6763,21 @@ +@@ -6677,6 +6763,21 @@ esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 $as_echo "$lt_cv_deplibs_check_method" >&6; } @@ -16961,7 +16973,7 @@ Index: binutils-2.21/ld/configure file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown -@@ -6692,9 +6793,162 @@ +@@ -6692,9 +6793,162 @@ test -z "$deplibs_check_method" && depli @@ -17126,7 +17138,7 @@ Index: binutils-2.21/ld/configure { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_AR+set}" = set; then : -@@ -6710,7 +6964,7 @@ +@@ -6710,7 +6964,7 @@ do test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then @@ -17135,7 +17147,7 @@ Index: binutils-2.21/ld/configure $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi -@@ -6730,11 +6984,15 @@ +@@ -6730,11 +6984,15 @@ $as_echo "no" >&6; } fi @@ -17154,7 +17166,7 @@ Index: binutils-2.21/ld/configure { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : -@@ -6750,7 +7008,7 @@ +@@ -6750,7 +7008,7 @@ do test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then @@ -17163,7 +17175,7 @@ Index: binutils-2.21/ld/configure $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi -@@ -6769,6 +7027,10 @@ +@@ -6769,6 +7027,10 @@ else $as_echo "no" >&6; } fi @@ -17174,7 +17186,7 @@ Index: binutils-2.21/ld/configure if test "x$ac_ct_AR" = x; then AR="false" else -@@ -6780,16 +7042,72 @@ +@@ -6780,16 +7042,72 @@ ac_tool_warned=yes ;; esac AR=$ac_ct_AR fi @@ -17251,7 +17263,7 @@ Index: binutils-2.21/ld/configure -@@ -7131,8 +7449,8 @@ +@@ -7131,8 +7449,8 @@ esac lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address @@ -17262,7 +17274,7 @@ Index: binutils-2.21/ld/configure # Handle CRLF in mingw tool chain opt_cr= -@@ -7168,6 +7486,7 @@ +@@ -7168,6 +7486,7 @@ for ac_symprfx in "" "_"; do else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi @@ -17270,7 +17282,7 @@ Index: binutils-2.21/ld/configure # Check to see that the pipe works correctly. pipe_works=no -@@ -7209,6 +7528,18 @@ +@@ -7209,6 +7528,18 @@ _LT_EOF if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext @@ -17289,7 +17301,7 @@ Index: binutils-2.21/ld/configure #ifdef __cplusplus extern "C" { #endif -@@ -7220,7 +7551,7 @@ +@@ -7220,7 +7551,7 @@ _LT_EOF cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ @@ -17298,7 +17310,7 @@ Index: binutils-2.21/ld/configure const char *name; void *address; } -@@ -7246,8 +7577,8 @@ +@@ -7246,8 +7577,8 @@ static const void *lt_preloaded_setup() _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext @@ -17309,7 +17321,7 @@ Index: binutils-2.21/ld/configure LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 -@@ -7257,8 +7588,8 @@ +@@ -7257,8 +7588,8 @@ _LT_EOF test $ac_status = 0; } && test -s conftest${ac_exeext}; then pipe_works=yes fi @@ -17320,7 +17332,7 @@ Index: binutils-2.21/ld/configure else echo "cannot find nm_test_func in $nlist" >&5 fi -@@ -7295,6 +7626,19 @@ +@@ -7295,6 +7626,19 @@ else $as_echo "ok" >&6; } fi @@ -17340,7 +17352,7 @@ Index: binutils-2.21/ld/configure -@@ -7315,6 +7659,42 @@ +@@ -7315,6 +7659,42 @@ fi @@ -17383,7 +17395,7 @@ Index: binutils-2.21/ld/configure # Check whether --enable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then : -@@ -7509,6 +7889,123 @@ +@@ -7509,6 +7889,123 @@ esac need_locks="$enable_libtool_lock" @@ -17507,7 +17519,7 @@ Index: binutils-2.21/ld/configure case $host_os in rhapsody* | darwin*) -@@ -8072,6 +8569,8 @@ +@@ -8072,6 +8569,8 @@ _LT_EOF $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 echo "$AR cru libconftest.a conftest.o" >&5 $AR cru libconftest.a conftest.o 2>&5 @@ -17516,7 +17528,7 @@ Index: binutils-2.21/ld/configure cat > conftest.c << _LT_EOF int main() { return 0;} _LT_EOF -@@ -8267,7 +8766,8 @@ +@@ -8267,7 +8766,8 @@ fi LIBTOOL_DEPS="$ltmain" # Always use our own libtool. @@ -17526,7 +17538,7 @@ Index: binutils-2.21/ld/configure -@@ -8356,7 +8856,7 @@ +@@ -8356,7 +8856,7 @@ aix3*) esac # Global variables: @@ -17535,7 +17547,7 @@ Index: binutils-2.21/ld/configure can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, -@@ -8654,8 +9154,6 @@ +@@ -8654,8 +9154,6 @@ fi lt_prog_compiler_pic= lt_prog_compiler_static= @@ -17544,7 +17556,7 @@ Index: binutils-2.21/ld/configure if test "$GCC" = yes; then lt_prog_compiler_wl='-Wl,' -@@ -8820,6 +9318,12 @@ +@@ -8820,6 +9318,12 @@ $as_echo_n "checking for $compiler optio lt_prog_compiler_pic='--shared' lt_prog_compiler_static='--static' ;; @@ -17557,7 +17569,7 @@ Index: binutils-2.21/ld/configure pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) -@@ -8882,7 +9386,7 @@ +@@ -8882,7 +9386,7 @@ $as_echo_n "checking for $compiler optio lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' case $cc_basename in @@ -17566,7 +17578,7 @@ Index: binutils-2.21/ld/configure lt_prog_compiler_wl='-Qoption ld ';; *) lt_prog_compiler_wl='-Wl,';; -@@ -8939,13 +9443,17 @@ +@@ -8939,13 +9443,17 @@ case $host_os in lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" ;; esac @@ -17590,7 +17602,7 @@ Index: binutils-2.21/ld/configure # # Check to make sure the PIC flag actually works. -@@ -9006,6 +9514,11 @@ +@@ -9006,6 +9514,11 @@ fi @@ -17602,7 +17614,7 @@ Index: binutils-2.21/ld/configure # # Check to make sure the static flag actually works. # -@@ -9356,7 +9869,8 @@ +@@ -9356,7 +9869,8 @@ _LT_EOF allow_undefined_flag=unsupported always_export_symbols=no enable_shared_with_static_runtimes=yes @@ -17612,7 +17624,7 @@ Index: binutils-2.21/ld/configure if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' -@@ -9404,7 +9918,7 @@ +@@ -9404,7 +9918,7 @@ _LT_EOF if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test "$tmp_diet" = no then @@ -17621,7 +17633,7 @@ Index: binutils-2.21/ld/configure tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler -@@ -9455,12 +9969,12 @@ +@@ -9455,12 +9969,12 @@ _LT_EOF whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' hardcode_libdir_flag_spec= hardcode_libdir_flag_spec_ld='-rpath $libdir' @@ -17636,7 +17648,7 @@ Index: binutils-2.21/ld/configure fi ;; esac -@@ -9474,8 +9988,8 @@ +@@ -9474,8 +9988,8 @@ _LT_EOF archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else @@ -17647,7 +17659,7 @@ Index: binutils-2.21/ld/configure fi ;; -@@ -9493,8 +10007,8 @@ +@@ -9493,8 +10007,8 @@ _LT_EOF _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then @@ -17658,7 +17670,7 @@ Index: binutils-2.21/ld/configure else ld_shlibs=no fi -@@ -9540,8 +10054,8 @@ +@@ -9540,8 +10054,8 @@ _LT_EOF *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then @@ -17669,7 +17681,7 @@ Index: binutils-2.21/ld/configure else ld_shlibs=no fi -@@ -9671,7 +10185,13 @@ +@@ -9671,7 +10185,13 @@ _LT_EOF allow_undefined_flag='-berok' # Determine the default libpath from the value encoded in an # empty executable. @@ -17684,7 +17696,7 @@ Index: binutils-2.21/ld/configure /* end confdefs.h. */ int -@@ -9684,22 +10204,29 @@ +@@ -9684,22 +10204,29 @@ main () _ACEOF if ac_fn_c_try_link "$LINENO"; then : @@ -17727,7 +17739,7 @@ Index: binutils-2.21/ld/configure hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" -@@ -9711,7 +10238,13 @@ +@@ -9711,7 +10238,13 @@ if test -z "$aix_libpath"; then aix_libp else # Determine the default libpath from the value encoded in an # empty executable. @@ -17742,7 +17754,7 @@ Index: binutils-2.21/ld/configure /* end confdefs.h. */ int -@@ -9724,22 +10257,29 @@ +@@ -9724,22 +10257,29 @@ main () _ACEOF if ac_fn_c_try_link "$LINENO"; then : @@ -17785,7 +17797,7 @@ Index: binutils-2.21/ld/configure hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, -@@ -9784,20 +10324,63 @@ +@@ -9784,20 +10324,63 @@ if test -z "$aix_libpath"; then aix_libp # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. @@ -17863,7 +17875,7 @@ Index: binutils-2.21/ld/configure ;; darwin* | rhapsody*) -@@ -9862,7 +10445,7 @@ +@@ -9862,7 +10445,7 @@ if test -z "$aix_libpath"; then aix_libp # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) @@ -17872,7 +17884,7 @@ Index: binutils-2.21/ld/configure hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no -@@ -9870,7 +10453,7 @@ +@@ -9870,7 +10453,7 @@ if test -z "$aix_libpath"; then aix_libp hpux9*) if test "$GCC" = yes; then @@ -17881,7 +17893,7 @@ Index: binutils-2.21/ld/configure else archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi -@@ -9886,7 +10469,7 @@ +@@ -9886,7 +10469,7 @@ if test -z "$aix_libpath"; then aix_libp hpux10*) if test "$GCC" = yes && test "$with_gnu_ld" = no; then @@ -17890,7 +17902,7 @@ Index: binutils-2.21/ld/configure else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi -@@ -9910,10 +10493,10 @@ +@@ -9910,10 +10493,10 @@ if test -z "$aix_libpath"; then aix_libp archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) @@ -17903,7 +17915,7 @@ Index: binutils-2.21/ld/configure ;; esac else -@@ -9992,23 +10575,36 @@ +@@ -9992,23 +10575,36 @@ fi irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then @@ -17948,7 +17960,7 @@ Index: binutils-2.21/ld/configure else archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' -@@ -10093,7 +10689,7 @@ +@@ -10093,7 +10689,7 @@ rm -f core conftest.err conftest.$ac_obj osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' @@ -17957,7 +17969,7 @@ Index: binutils-2.21/ld/configure hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else allow_undefined_flag=' -expect_unresolved \*' -@@ -10112,9 +10708,9 @@ +@@ -10112,9 +10708,9 @@ rm -f core conftest.err conftest.$ac_obj no_undefined_flag=' -z defs' if test "$GCC" = yes; then wlarc='${wl}' @@ -17969,7 +17981,7 @@ Index: binutils-2.21/ld/configure else case `$CC -V 2>&1` in *"Compilers 5.0"*) -@@ -10690,8 +11286,9 @@ +@@ -10690,8 +11286,9 @@ cygwin* | mingw* | pw32* | cegcc*) need_version=no need_lib_prefix=no @@ -17981,7 +17993,7 @@ Index: binutils-2.21/ld/configure library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ -@@ -10724,13 +11321,71 @@ +@@ -10724,13 +11321,71 @@ cygwin* | mingw* | pw32* | cegcc*) library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac @@ -18054,7 +18066,7 @@ Index: binutils-2.21/ld/configure # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; -@@ -10826,7 +11481,7 @@ +@@ -10826,7 +11481,7 @@ haiku*) soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=yes @@ -18063,7 +18075,7 @@ Index: binutils-2.21/ld/configure hardcode_into_libs=yes ;; -@@ -11622,7 +12277,7 @@ +@@ -11622,7 +12277,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF @@ -18072,7 +18084,7 @@ Index: binutils-2.21/ld/configure #include "confdefs.h" #if HAVE_DLFCN_H -@@ -11666,10 +12321,10 @@ +@@ -11666,10 +12321,10 @@ else /* When -fvisbility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) @@ -18085,7 +18097,7 @@ Index: binutils-2.21/ld/configure int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); -@@ -11728,7 +12383,7 @@ +@@ -11728,7 +12383,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF @@ -18094,7 +18106,7 @@ Index: binutils-2.21/ld/configure #include "confdefs.h" #if HAVE_DLFCN_H -@@ -11772,10 +12427,10 @@ +@@ -11772,10 +12427,10 @@ else /* When -fvisbility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) @@ -18107,7 +18119,7 @@ Index: binutils-2.21/ld/configure int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); -@@ -14063,13 +14718,20 @@ +@@ -14063,13 +14718,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_ lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' @@ -18128,7 +18140,7 @@ Index: binutils-2.21/ld/configure STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' -@@ -14084,14 +14746,17 @@ +@@ -14084,14 +14746,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$l lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' @@ -18147,7 +18159,7 @@ Index: binutils-2.21/ld/configure DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' -@@ -14124,12 +14789,12 @@ +@@ -14124,12 +14789,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcod hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' @@ -18161,7 +18173,7 @@ Index: binutils-2.21/ld/configure file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' -@@ -14184,8 +14849,13 @@ +@@ -14184,8 +14849,13 @@ reload_flag \ OBJDUMP \ deplibs_check_method \ file_magic_cmd \ @@ -18175,7 +18187,7 @@ Index: binutils-2.21/ld/configure STRIP \ RANLIB \ CC \ -@@ -14195,12 +14865,14 @@ +@@ -14195,12 +14865,14 @@ lt_cv_sys_global_symbol_pipe \ lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ @@ -18191,7 +18203,7 @@ Index: binutils-2.21/ld/configure DSYMUTIL \ NMEDIT \ LIPO \ -@@ -14216,7 +14888,6 @@ +@@ -14216,7 +14888,6 @@ no_undefined_flag \ hardcode_libdir_flag_spec \ hardcode_libdir_flag_spec_ld \ hardcode_libdir_separator \ @@ -18199,7 +18211,7 @@ Index: binutils-2.21/ld/configure exclude_expsyms \ include_expsyms \ file_list_spec \ -@@ -14252,6 +14923,7 @@ +@@ -14252,6 +14923,7 @@ module_cmds \ module_expsym_cmds \ export_symbols_cmds \ prelink_cmds \ @@ -18207,7 +18219,7 @@ Index: binutils-2.21/ld/configure postinstall_cmds \ postuninstall_cmds \ finish_cmds \ -@@ -15047,7 +15719,8 @@ +@@ -15047,7 +15719,8 @@ $as_echo X"$file" | # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, @@ -18217,7 +18229,7 @@ Index: binutils-2.21/ld/configure # Written by Gordon Matzigkeit, 1996 # # This file is part of GNU Libtool. -@@ -15150,19 +15823,42 @@ +@@ -15150,19 +15823,42 @@ SP2NL=$lt_lt_SP2NL # turn newlines into spaces. NL2SP=$lt_lt_NL2SP @@ -18261,7 +18273,7 @@ Index: binutils-2.21/ld/configure # A symbol stripping program. STRIP=$lt_STRIP -@@ -15192,6 +15888,12 @@ +@@ -15192,6 +15888,12 @@ global_symbol_to_c_name_address=$lt_lt_c # Transform the output of nm in a C name address pair when lib prefix is needed. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix @@ -18274,7 +18286,7 @@ Index: binutils-2.21/ld/configure # The name of the directory that contains temporary libtool files. objdir=$objdir -@@ -15201,6 +15903,9 @@ +@@ -15201,6 +15903,9 @@ MAGIC_CMD=$MAGIC_CMD # Must we lock files when doing compilation? need_locks=$lt_need_locks @@ -18284,7 +18296,7 @@ Index: binutils-2.21/ld/configure # Tool to manipulate archived DWARF debug symbol files on Mac OS X. DSYMUTIL=$lt_DSYMUTIL -@@ -15315,12 +16020,12 @@ +@@ -15315,12 +16020,12 @@ with_gcc=$GCC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag @@ -18300,7 +18312,7 @@ Index: binutils-2.21/ld/configure # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static -@@ -15407,9 +16112,6 @@ +@@ -15407,9 +16112,6 @@ inherit_rpath=$inherit_rpath # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs @@ -18310,7 +18322,7 @@ Index: binutils-2.21/ld/configure # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols -@@ -15425,6 +16127,9 @@ +@@ -15425,6 +16127,9 @@ include_expsyms=$lt_include_expsyms # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds @@ -18320,7 +18332,7 @@ Index: binutils-2.21/ld/configure # Specify filename containing input files. file_list_spec=$lt_file_list_spec -@@ -15457,210 +16162,169 @@ +@@ -15457,210 +16162,169 @@ ltmain="$ac_aux_dir/ltmain.sh" # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? @@ -18693,9 +18705,9 @@ Index: binutils-2.21/ld/configure Index: binutils-2.21/bfd/configure.in =================================================================== ---- binutils-2.21.orig/bfd/configure.in 2011-01-07 11:24:12.586101000 -0800 -+++ binutils-2.21/bfd/configure.in 2011-01-07 11:24:45.206101000 -0800 -@@ -532,7 +532,7 @@ +--- binutils-2.21.orig/bfd/configure.in ++++ binutils-2.21/bfd/configure.in +@@ -532,7 +532,7 @@ changequote(,)dnl x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'` changequote([,])dnl if test -n "$x"; then @@ -18706,9 +18718,9 @@ Index: binutils-2.21/bfd/configure.in # More hacks to build DLLs on Windows. Index: binutils-2.21/opcodes/configure.in =================================================================== ---- binutils-2.21.orig/opcodes/configure.in 2011-01-07 11:24:12.606100958 -0800 -+++ binutils-2.21/opcodes/configure.in 2011-01-07 11:25:36.816101002 -0800 -@@ -134,7 +134,7 @@ +--- binutils-2.21.orig/opcodes/configure.in ++++ binutils-2.21/opcodes/configure.in +@@ -134,7 +134,7 @@ changequote(,)dnl x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'` changequote([,])dnl if test -n "$x"; then diff --git a/recipes/binutils/binutils_2.21.bb b/recipes/binutils/binutils_2.21.bb index ce1dc04b09..df044aa5ca 100644 --- a/recipes/binutils/binutils_2.21.bb +++ b/recipes/binutils/binutils_2.21.bb @@ -1,5 +1,5 @@ require binutils.inc -PR = "${INC_PR}.2" +PR = "${INC_PR}.3" LICENSE = "GPLv3" SRC_URI = "${GNU_MIRROR}/binutils/binutils-${PV}.tar.bz2 \ -- cgit 1.2.3-korg