libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating two-level namespace binaries on Mac OS 10.2?


From: Peter O'Gorman
Subject: Re: Creating two-level namespace binaries on Mac OS 10.2?
Date: Mon, 14 Mar 2005 21:42:11 +0900
User-agent: Mozilla Thunderbird 1.0 (Macintosh/20041206)

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

Karin Kosina wrote:
| Hi,
|
|   I want to build a two-level namespace library, using the options
| -twolevel_namespace -undefined error. This used to work fine, setting
| LD_TWOLEVEL_NAMESPACE=1 being enough to stop libtool from adding the
| -flat_namespace option (and thus causing a clash).
|
| Now after I have upgraded to libtool 1.5.14, it seems that instead
| of LD_TWOLEVEL_NAMESPACE, MACOSX_DEPLOYMENT_TARGET is used to
| control whether -flat_namespace is used or not.
|
| Now this works fine if the deployment target is actually 10.3 -- but
| what if I want to build a two-level namespace binary on Mac OS 10.2?
|
| Is there any reason why you would disallow this?

Yes. Doing so will cause libraries whcih require undefined symbols to fail
to build. If your library does not require undefined symbols, add
- -no-undefined to the link flags and Mac OS X will build a two level
namespace shared library.

Peter
- --
Peter O'Gorman - http://www.pogma.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Darwin)

iQCVAwUBQjWGoriDAg3OZTLPAQIBQAQAvFs86QlHceCNJcXIi9rPB/iyvrFADIxV
/YJiRNICLoosgSLqTKkFJlNcfwP2EKdBLBvIuQrBKbudItH4HEWoUJyAilF+a9P+
uFg1nGytgdnbZ2rv2SoxY9zx0Wtb45yzkzF0GuNk1hJfN5mnIiJ928FGM1kRcjz6
K7iE4dQAtd0=
=vt7S
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]