diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-04-11 00:33:43 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-04-11 00:33:43 +0000 |
commit | c9f1b2d4c67b0e8337d694b362aa36c6db9a519c (patch) | |
tree | 0da9c384337b14e43f6cc77fbfdc7c2fed520fcb /autoconf/m4 | |
parent | f6390b51e3fadfe733fcb2ebbba125c1efb3ef69 (diff) |
Hack the shared library extension for dylib. The existing code just looks
plain wrong since $module was never defined so we always get .so which is
broken on Darwin. Just force it to .dylib.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35873 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf/m4')
-rw-r--r-- | autoconf/m4/libtool.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autoconf/m4/libtool.m4 b/autoconf/m4/libtool.m4 index 420d43010f..5de110bddb 100644 --- a/autoconf/m4/libtool.m4 +++ b/autoconf/m4/libtool.m4 @@ -1365,7 +1365,7 @@ darwin* | rhapsody*) soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + shrext_cmds='.dylib' # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |