[82168] trunk/dports/graphics
Ryan Schmidt
ryandesign at macports.org
Tue Aug 9 21:48:47 PDT 2011
On Aug 9, 2011, at 23:28, Blair Zajac wrote:
> On Aug 9, 2011, at 9:08 PM, Ryan Schmidt wrote:
>
>> On Aug 9, 2011, at 21:01, Blair Zajac wrote:
>>
>>> The libField3D.dylib needs to be installed as 0755, but besides this, thanks.
>>
>> Why is that though? Nobody is going to be executing the dylib, so why would it need the execute bit?
>
> I'm not sure of the exact reason, it's always been practice, but they normally are installed that way:
>
> find /usr/lib -maxdepth 1 -name \*.dylib -type f -ls
>
> Maybe it's something to do with executing code from a shared library that is memory mapped into the process?
>
> I know on linux if you don't, then ldd complains, although the process still runs.
Hmm. I do see most libraries in /usr/lib and /opt/local/lib have the execute bit, but some don't.
Google tells me sometimes it's useful to execute a shared library:
http://stackoverflow.com/questions/6299395/gcc-generates-shared-object-with-execute-permissions
So, that's interesting.
More information about the macports-dev
mailing list