On 3/27/2011 6:41 AM, Michel Fortin wrote:
Le 2011-03-26 à 20:35, Walter Bright a écrit :

On 3/26/2011 1:26 PM, Michel Fortin wrote:
A little while ago, there was a discussion about where to put the 32-bit phobos 
library in the DMD archive. It was finally decided that the 32-bit version 
would  go to a lib32 directory, and the 64-bit one in a lib64 directory.

That's all fine for Linux, but I brought to the discussion that on OS X the 
standard way is to create a universal binary which includes both architectures 
in one file. That's how libraries are packaged on OS X. But I was told, that 
this didn't concern OS X (yet) as the 64-bit port was (for now) Linux-only. 
Valid point.

But now, I see that in the archive the OS X library has been moved to a lib32 
directory. Was this intentional or is it an oversight? Is the plan to do things 
as they're done on Linux and not have a universal multi-architecture binary?

Currently D for Xcode is broken by this change and I'm looking at the best way to fix it. 
In the sort term I might just change the path to point to the lib32 directory instead of 
simply "lib". But the current approach which is to put a symbolic link in 
/usr/local/lib pointing to libphobos2.a won't work anymore if the binary for the two 
architectures are kept in separate files...
I don't know what the right answer is.
The best thing would be to have a single multi-architecture library in a "lib" folder. Which would 
mean going back to "lib" instead of "lib32".

And when the 64-bit version appears, you can easily combine the two architectures into a 
single library file using the "lipo" command and let the linker handle things 
from there on.

There's a conflict with the "mac way" and the "unix way". I'll have to agree with Michel that on the mac we should do it the mac way.
_______________________________________________
phobos mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/phobos

Reply via email to