[Zlib-devel] OSX and usage of /usr/bin/libtool
Fabian Groffen
grobian at gentoo.org
Tue Jun 5 03:14:48 EDT 2012
On 04-06-2012 11:00:33 -0700, Mark Adler wrote:
> On Jun 4, 2012, at 10:39 AM, Fabian Groffen wrote:
> > I'm happy to accept this problem is an artifact of using a more
> > up-to-date toolchain than originally provided with the system,
>
> Fabian,
>
> Basically, yes, except that it is not that GNU libtool is a "more up-to-date" version, but rather that it is simply different from /usr/bin/libtool, which is Apple, not GNU. /usr/bin/libtool has different options from GNU libtool, which is why I had to put in the hardcoded binary path. The options used for Mac OS X libtool don't work with GNU libtool.
Sorry I wasn't clear on this. Let me try to explain what I mean by
"more up-to-date":
[nut:~] % which libtool
/Library/Gentoo/usr/bin/libtool
[nut:~] % libtool --version
libtool: unknown option character `-' in: --version
Usage: libtool -static [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-sacLT]
Usage: libtool -dynamic [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-o output] [-install_name name] [-compatibility_version #] [-current_version #] [-seg1addr 0x#] [-segs_read_only_addr 0x#] [-segs_read_write_addr 0x#] [-seg_addr_table <filename>] [-seg_addr_table_filename <file_system_path>] [-all_load] [-noall_load]
[nut:~] % libtool -V
Apple Inc. version cctools-
[nut:~] % qfile -v libtool
sys-devel/binutils-apple-3.2.6 (/Library/Gentoo/usr/x86_64-apple-darwin11/binutils-bin/3.2.6/libtool)
sys-devel/binutils-apple-4.3 (/Library/Gentoo/usr/x86_64-apple-darwin11/binutils-bin/4.3/libtool)
On my Leopard system, I installed Apple's libtool from Lion as well, so
as a result, my "libtool" is just Apple libtool, but newer than
/usr/bin/libtool.
> This change was made due to problem reports from users who had installed GNU libtool upstream from the Apple libtool in the executable path.
I see. Those users will have problems with some other packages as well.
(Apple's gcc has "libtool" wired in.) It seems to me it would be better
if they would just override AR, to work around their broken system.
Thanks,
Fabian
--
Fabian Groffen
Gentoo on a different level
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: Digital signature
URL: <http://madler.net/pipermail/zlib-devel_madler.net/attachments/20120605/fe376072/attachment.sig>
More information about the Zlib-devel
mailing list