[LLVMdev] [PATCH]: enable multilib build on x86_64-apple-darwin

Jack Howarth howarth at bromo.med.uc.edu
Sun Aug 23 12:03:25 PDT 2009


Shantonu,
   To clarify, the reason for the i386 multilib on
x86_64-apple-darwin is to enable users of the
x86_64-apple-darwin target to also compile i386
code in gfortran for example. Otherwise they have
to build the i686-apple-darwin target and keep to
seperate compilers around. I will admit this feature
is perhaps more useful on FSF gcc 4.4 where we have
the new -static-libgfortran flag allows for building
semi-static binaries (linked against libgfortran.a)
on darwin...

http://gcc.gnu.org/ml/gcc-patches/2009-01/msg00850.html

Perhaps I should port that change to llvm-gcc-4.2 as
well?
             Jack

On Sun, Aug 23, 2009 at 11:43:03AM -0700, Shantonu Sen wrote:
> doesn't --target=x86_64-apple-darwin imply you don't want multi-libs,  
> and an x86_64-only compiler?
>
> Shantonu
>
> Sent from my MacBook
>
> On Aug 23, 2009, at 11:36 AM, Jack Howarth wrote:
>
>> Current llvm-gcc-4.2 for trunk and the 2.6 release
>> is unable to build the i386 multilib for the
>> x86_64-apple-darwin target. The attached patch provides
>> this support. Can we get this into the 2.6 release
>> and trunk?
>>           Jack
>>
>> < 
>> darwin64_multilib.diff>_______________________________________________
>> LLVM Developers mailing list
>> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev



More information about the llvm-dev mailing list