libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

darwin library_names_spec


From: Peter O'Gorman
Subject: darwin library_names_spec
Date: Sun, 30 Nov 2003 00:28:07 +0900
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3

Hi,
I want to change the darwin spec to produce libfoo.dylib and libfoo.x.dylib instead of the current libfoo.dylib libfoo.x.dylib and libfoo.x.y.z.dylib, because the dynamic linker looks for libfoo.x.dylib which is currently a symlink, and many tools assume that the soname (libfoo.x.dylib) is the real library.

I'll wait a week for comments on this one before applying.

Peter
--
Peter O'Gorman - http://www.pogma.com

Index: ChangeLog
2001-11-10  Peter O'Gorman  <address@hidden>

        * m4/libtool.m4 (darwin): Change library_names_spec to a couplet
        to avoid the dynamic linker requiring a symlink be present.

Index: m4/libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/m4/libtool.m4,v
retrieving revision 1.23
diff -u -r1.23 libtool.m4
--- m4/libtool.m4 28 Nov 2003 13:41:22 -0000 1.23
+++ m4/libtool.m4 29 Nov 2003 15:13:38 -0000
@@ -1335,7 +1335,7 @@
   version_type=darwin
   need_lib_prefix=no
   need_version=no
-  library_names_spec='${libname}${release}${versuffix}$shared_ext 
${libname}${release}${major}$shared_ext ${libname}$shared_ext'
+  library_names_spec='${libname}${release}${major}$shared_ext 
${libname}$shared_ext'
   soname_spec='${libname}${release}${major}$shared_ext'
   shlibpath_overrides_runpath=yes
   shlibpath_var=DYLD_LIBRARY_PATH

reply via email to

[Prev in Thread] Current Thread [Next in Thread]