components/apr-1_5/patches/libtool.m4.patch
branchs11-update
changeset 3668 614657dc60eb
child 1936 185320167a36
equal deleted inserted replaced
3666:f6b2b3066ff4 3668:614657dc60eb
       
     1 Patch origin: in-house
       
     2 Patch status: Solaris-specific; not suitable for upstream
       
     3 
       
     4 --- build/libtool.m4.orig	Fri Aug  8 23:08:06 2008
       
     5 +++ build/libtool.m4	Mon Feb  2 23:27:08 2009
       
     6 @@ -1806,6 +1806,19 @@
       
     7    shlibpath_var=LD_LIBRARY_PATH
       
     8    shlibpath_overrides_runpath=yes
       
     9    hardcode_into_libs=yes
       
    10 +  sys_lib_search_path_spec="/lib /usr/lib"
       
    11 +  # Find out which ABI we are using.
       
    12 +  echo 'int i;' > conftest.$ac_ext
       
    13 +  if AC_TRY_EVAL(ac_compile); then
       
    14 +    case `/usr/bin/file conftest.o` in
       
    15 +    *64-bit*)
       
    16 +      MACH_TYPE=`/usr/bin/isainfo -n`
       
    17 +      sys_lib_search_path_spec="/lib/${MACH_TYPE} /usr/lib/${MACH_TYPE}"
       
    18 +      ;;
       
    19 +    esac
       
    20 +  fi
       
    21 +  rm -rf conftest*
       
    22 +  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
       
    23    # ldd complains unless libraries are executable
       
    24    postinstall_cmds='chmod +x $lib'
       
    25    ;;