[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
libtool-1.3.5 patches
From: |
Dennis Haag |
Subject: |
libtool-1.3.5 patches |
Date: |
Wed, 06 Jun 2001 12:04:55 -0700 |
First of all, thanks for your work to get GNU going on Darwin.
Secondly, even though I work as a contractor at Apple this communication is
strictly personal and in no way reflects any official opinion, statement,
or endorsement by Apple Computer, Inc. yada yada yada....
I applied the libtool-1.3.5 patch to get libtool to work with Darwin/Mac OS
X (10.0.3). There was a slight problem. It would detect that it could
create shared libraries but then fail with the message:
*** Warning: the command libtool uses to detect shared libraries,
*** /usr/bin/file, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such. This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem. Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** address@hidden
The ltconfig is checking a file that at least in Mac OS X 10.0.3 is a
symlink and not a dynamic library, so the test (if eval $file_magic_cmd
\$file_magic_test_file 2> /dev/null | egrep "$file_magic_regex") failed. I
changed it to point to the file instead of the symlink and it worked
beautifully. Here's a diff of what I did to fix the problem.
diff -u libtool-1.3.5/ltconfig libtool-darwin-patches/ltconfig
--- libtool-1.3.5/ltconfig Mon Jun 4 10:05:30 2001
+++ libtool-darwin-patches/ltconfig Tue Jun 5 15:15:52 2001
@@ -1931,7 +1931,7 @@
need_version=no
deplibs_check_method='file_magic Mach-O dynamically linked shared
library'
file_magic_cmd=/usr/bin/file
- file_magic_test_file=`echo
/System/Library/Frameworks/System.framework/Versions/*/System | head -1`
+ file_magic_test_file=`echo /usr/lib/libSystem.*.dylib | head -1`
library_names_spec='${libname}${release}${versuffix}.$(test x$module =
xyes && echo so || echo dylib) ${libname}${release}${major}.$(test x$module
= xyes && echo so || echo dylib) ${libname}.$(test x$module = xyes && echo
so || echo dylib)'
soname_spec='${libname}${release}${major}.$(test x$module = xyes && echo
so || echo dylib)'
postinstall_cmds='chmod +x $lib'
--
Dennis Haag Engineering Computer Services
address@hidden address@hidden
408-974-6630 ECS Hotline: 408-974-4747
- libtool-1.3.5 patches,
Dennis Haag <=