the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: libtool14
Version: 1.5.26
Revision: 4
Maintainer: Peter O'Gorman
BuildDepends: fink (>= 0.24.12-1), autoconf, automake1.11
Depends: %N-shlibs (= %v-%r)
BuildDependsOnly: true
Conflicts: libtool2, libtool, libstroke (<= 0.5.1-2), libstroke-m4
BuildConflicts: autoconf2.13
Replaces: libtool2, libtool
Source: mirror:gnu:libtool/libtool-%v.tar.gz
Source-MD5: aa9c5107f3ec9ef4200eb6556f3b3c29
PatchFile: %n.patch
PatchFile-MD5: 76fba283378a027cfb5a47406e938ba9
ConfigureParams: --program-transform-name=s/libtool/glibtool/ --infodir=%p/share/info
CompileScript: <<
./bootstrap
./configure %c lt_cv_path_SED="/usr/bin/sed" F77=no
make ltmain.sh
make
<<
InfoTest: TestScript: make check || exit 2
InstallScript: <<
make install DESTDIR=%d
ln -s %p/bin/glibtoolize %i/bin/libtoolize
<<
SplitOff: <<
Package: %N-shlibs
Replaces: libtool14 (<= 1.4.2-4)
Files: lib/libltdl.3*.dylib
Shlibs: %p/lib/libltdl.3.dylib 5.0.0 %n (>= 1.4.2-6)
Description: Shared libraries for libtool, v1.5
DocFiles: <<
README COPYING AUTHORS NEWS THANKS
libltdl/COPYING.LIB libltdl/README:README.libltdl
<<
<<
DocFiles: <<
README COPYING AUTHORS NEWS THANKS ChangeLog
libltdl/COPYING.LIB libltdl/README:README.libltdl
<<
InfoDocs: libtool.info
#
Description: Shared library build helper, v1.5
DescDetail: <<
GNU libtool knows how to build shared libraries on a wide range of
platforms. It is designed to work with autoconf to add painless shared
library support to GNU packages.
libtool 1.4 was a major change - it is now fully integrated with
autoconf. Converting packages is non-trivial and many still use 1.3.5,
therefore the new version is a separate package.
<<
DescPort: <<
Uses a 'g' prefix to avoid a naming conflict with Apple's libtool
program (which is completely unrelated).
<<
License: GPL/LGPL
Homepage: http://www.gnu.org/software/libtool/libtool.html
diff -urN libtool-1.5.26.orig/libltdl/ltdl.c libtool-1.5.26/libltdl/ltdl.c
--- libtool-1.5.26.orig/libltdl/ltdl.c 2007-11-15 13:36:41.000000000 -0600
+++ libtool-1.5.26/libltdl/ltdl.c 2009-11-15 21:13:37.000000000 -0600
@@ -2192,7 +2192,8 @@
static int try_dlopen LT_PARAMS((lt_dlhandle *handle,
const char *filename));
static int tryall_dlopen LT_PARAMS((lt_dlhandle *handle,
- const char *filename));
+ const char *filename,
+ const char * useloader));
static int unload_deplibs LT_PARAMS((lt_dlhandle handle));
static int lt_argz_insert LT_PARAMS((char **pargz,
size_t *pargz_len,
@@ -2390,9 +2391,10 @@
}
static int
-tryall_dlopen (handle, filename)
+tryall_dlopen (handle, filename, useloader)
lt_dlhandle *handle;
const char *filename;
+ const char *useloader;
{
lt_dlhandle cur;
lt_dlloader *loader;
@@ -2459,6 +2461,11 @@
while (loader)
{
+ if (useloader && strcmp(loader->loader_name, useloader))
+ {
+ loader = loader->next;
+ continue;
+ }
lt_user_data data = loader->dlloader_data;
cur->module = loader->module_open (data, filename);
@@ -2528,7 +2535,7 @@
error += tryall_dlopen_module (handle,
(const char *) 0, prefix, filename);
}
- else if (tryall_dlopen (handle, filename) != 0)
+ else if (tryall_dlopen (handle, filename, NULL) != 0)
{
++error;
}
@@ -2549,7 +2556,7 @@
/* Try to open the old library first; if it was dlpreopened,
we want the preopened version of it, even if a dlopenable
module is available. */
- if (old_name && tryall_dlopen (handle, old_name) == 0)
+ if (old_name && tryall_dlopen (handle, old_name, "dlpreload") == 0)
{
return 0;
}
@@ -2813,7 +2820,7 @@
/* Try to dlopen the file, but do not continue searching in any
case. */
- if (tryall_dlopen (handle, filename) != 0)
+ if (tryall_dlopen (handle, filename,NULL) != 0)
*handle = 0;
return 1;
@@ -3103,7 +3110,7 @@
/* lt_dlclose()ing yourself is very bad! Disallow it. */
LT_DLSET_FLAG (*phandle, LT_DLRESIDENT_FLAG);
- if (tryall_dlopen (&newhandle, 0) != 0)
+ if (tryall_dlopen (&newhandle, 0, NULL) != 0)
{
LT_DLFREE (*phandle);
return 1;
@@ -3225,7 +3232,7 @@
}
#endif
}
- if (!file)
+ else
{
file = fopen (filename, LT_READTEXT_MODE);
}
@@ -3412,7 +3419,7 @@
#endif
)))
{
- if (tryall_dlopen (&newhandle, filename) != 0)
+ if (tryall_dlopen (&newhandle, filename, NULL) != 0)
{
newhandle = NULL;
}
diff -urN libtool-1.5.26.orig/libtool.m4 libtool-1.5.26/libtool.m4
--- libtool-1.5.26.orig/libtool.m4 2008-02-01 10:26:47.000000000 -0600
+++ libtool-1.5.26/libtool.m4 2009-11-15 21:12:17.000000000 -0600
@@ -6042,25 +6042,7 @@
;;
darwin* | rhapsody*)
- case $host_os in
- rhapsody* | darwin1.[[012]])
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
- ;;
- *) # Darwin 1.3 on
- if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
- else
- case ${MACOSX_DEPLOYMENT_TARGET} in
- 10.[[012]])
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
- ;;
- 10.*)
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
- ;;
- esac
- fi
- ;;
- esac
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
_LT_AC_TAGVAR(hardcode_direct, $1)=no
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes