--- config/ltconfig.orig 2013-10-27 06:37:18.000000000 -0700 +++ config/ltconfig 2013-10-27 06:40:45.000000000 -0700 @@ -1385,7 +1385,7 @@ # Mac OS X v10.2 uses bash for /bin/sh instead of zsh, and the quoting syntax is incompatible darwin*) allow_undefined_flag='-undefined error' - 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)' + 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)' # We need to add '_' to the symbols in $export_symbols first #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols $lib' hardcode_direct=yes