Re: /usr/X11 vs /opt/X11 on Mountain Lion
Re: /usr/X11 vs /opt/X11 on Mountain Lion
- Subject: Re: /usr/X11 vs /opt/X11 on Mountain Lion
- From: Jeremy Huddleston Sequoia <email@hidden>
- Date: Mon, 06 Aug 2012 11:36:07 -0700
On Aug 6, 2012, at 10:21, Tim Jenness <email@hidden> wrote:
> On Mon, Aug 6, 2012 at 10:07 AM, Ken Thomases <email@hidden> wrote:
>
>> On Aug 6, 2012, at 10:38 AM, Tim Jenness wrote:
>>
>>> Can someone confirm for me that the only reason I still have a /usr/X11
>> in Mountain Lion is because I updated from Lion? If I did a fresh install
>> of Mountain Lion would I only have /opt/X11 from xquartz?
>>
>> No. The stuff in /usr/X11 is specific to Mountain Lion, but is not to be
>> used. If a process loads any of the binaries from /usr/X11, it is
>> terminated and a dialog is presented to the user instructing them to
>> install XQuartz. So, those binaries are there specifically to help the
>> user transition from an OS-supplied X11 to XQuartz.
>>
>>
> Thanks. That's interesting (and I have seen that "install XQuartz" popup)
Probably because you installed XQuartz already ;)
> but even more interesting is that autoconf configure (unsurprisingly) is
> using /usr/X11/lib and linking with that but otool is reporting that it's
> picking up the libraries from /opt/X11 at runtime.
Yes, because /usr/X11 is a symlink to /opt/X11.
> The implication is I don't really have to fix my AC_PATH_XTRA autoconf
> macro to look for /opt/X11 in preference to /usr/X11 until next year's OSX
> is out.
>
> PS do you expect binaries built on ML with current unix developer tools to
> run on lion?
Yes, assuming you set the correct deployment target.
> If I copy a binary across I get an immediate crash with
> Illegal Instruction.
Did you use -mmacosx-version-min=10.7 ?
> I'm a bit surprised that ML binaries seem to be
> completely incompatible with Lion (using clang 4 in both cases). Lion
> binaries ran on snow leopard.
You need to use -mmacosx-version-min if you build against a newer SDK and want to deploy on an older one.
--Jeremy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden