-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jarkko Hietaniemi wrote:

> You are kidding, right?  Have you actually tried building anything
> large enough to warrant libtool somewhere not in Linux?  In general

I have.  Lots.  I'm one of the maintainers for Fink (a Mac OS X
"distribution") and I've been porting stuff to OSX since 2001.  OSX has
linker quirks as weird as AIX's (and shares AIX's "shared libraries !=
loadable modules" mentality).  Early on, it was a nightmare because
libtool didn't understand OSX, but as libtool got fixed to work around
weirdness in linking on OSX, it got less and less likely that the build
system needed to be hacked up to work properly.  Now, the only time we
have issues is when someone does something non-portable, be it
purposefully or not (linking directly against self-made .a files,
relying on ELF not caring which library it gets it's symbols from, etc.)

> the libtool/pkgconfig/autoconf/the usual suspects have a bad (terminal?)
> case of "maybe in the early nineties we actually cared about multiple
> operating systems, but since Linux came along, we can be as bigoted
> about it as Windows people are about Windows".  To quote A. Pagaltzis:
> "It's portable -- it works on Debian *and* RedHat!"

The ICMP library we use for OpenNMS was written by us on linux, and I
was able to build it without modification on Mac OS X (other than having
to detect the right BSD-style in.h headers instead of the SysV-style
ones).  Recently, we made a port to Windows, and I was pleasantly
surprised to find the only thing that needed to be added to make it a
Windows DLL was to add -lws2_32 and add "-no-undefined" to the LDFLAGS.
 If you've ever seen what it takes to *manually* make win32 DLLs (whacky
exported symbol lists, etc.) that's pretty friggin' amazing.

Libtool totally has it's own bit of hatefulness, but if you follow their
guidelines for making things portable in the first place, it's
definitely tons better than the hand-rolled build systems I've had to
"fix" on Mac OS X.

- --
Benjamin Reed a.k.a. Ranger Rick
Fink, KDE, and Mac OS X development
http://www.racoonfink.com/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHOv7HUu+jZtP2Zf4RAvVvAJwM/0yfAo/7yEA+JRQQxIIDQcvJiACfe+9g
W2HPHBUh0H9WQQYYO2hiIwI=
=aVz3
-----END PGP SIGNATURE-----

Reply via email to