Ticket #40885: ltconfig_rpath_fallback.diff

File ltconfig_rpath_fallback.diff, 921 bytes (added by carter.tjoseph@…, 10 years ago)

Fix 2.1.26's libtool to fallback to $rpath if $LD_RUN_PATH is unset

  • config/ltconfig

    old new  
    13851385  # Mac OS X v10.2 uses bash for /bin/sh instead of zsh, and the quoting syntax is incompatible
    13861386  darwin*)
    13871387    allow_undefined_flag='-undefined error'
    1388     archive_cmds='$CC $(test x$module = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs $linkopts $(test x$module != xyes && echo -install_name $LD_RUN_PATH/$soname $tmp_verstring)'
     1388    archive_cmds='$CC $(test x$module = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs $linkopts $(test x$module != xyes && echo -install_name ${LD_RUN_PATH:-$rpath}/$soname $tmp_verstring)'
    13891389    # We need to add '_' to the symbols in $export_symbols first
    13901390    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols $lib'
    13911391    hardcode_direct=yes