FS#3972 - Static building fix for Mac OS X

Attached to Project: OpenTTD
Opened by Florian Maunier (fmauNeko) - Saturday, 24 July 2010, 21:56 GMT
Last edited by Remko Bijker (Rubidium) - Friday, 22 October 2010, 21:14 GMT
Type Patch
Category Build system
Status Closed
Assigned To No-one
Operating System Mac OS X
Severity Medium
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


This is a patch for the building really static binaries on Mac OS X. It fixes the detection of static libraries for lzo2, zlib and iconv, which were always dynamically linked, even if ./configure was called with --enable-static.
This task depends upon

Closed by  Remko Bijker (Rubidium)
Friday, 22 October 2010, 21:14 GMT
Reason for closing:  Won't implement
Additional comments about closing:  Linking statically to stuff that is always available on a system is pointless and just adds extra unneeded vulnerabilities to the OpenTTD binaries.
Comment by Florian Maunier (fmauNeko) - Saturday, 24 July 2010, 21:57 GMT
I forgot to precise, this patch is against rev20214.
Comment by Michael Lutz (michi_cc) - Sunday, 25 July 2010, 00:07 GMT
iconv and zlib are supplied by the OS in any non-ancient version which means they shouldn't be statically linked without a very good reason. (Apple doesn't even ship static libs for these as far as I know.)