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

Jack Howarth howarth at bromo.med.uc.edu
Sun Aug 23 11:36:26 PDT 2009


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

-------------- next part --------------
Index: gcc/config/i386/t-darwin64
===================================================================
--- gcc/config/i386/t-darwin64	(revision 79792)
+++ gcc/config/i386/t-darwin64	(working copy)
@@ -2,6 +2,12 @@
 LIB2_SIDITI_CONV_FUNCS=yes
 LIB2FUNCS_EXTRA = $(srcdir)/config/darwin-64.c
 
+MULTILIB_OPTIONS = m32
+MULTILIB_DIRNAMES = i386
+
+LIBGCC = stmp-multilib
+INSTALL_LIBGCC = install-multilib
+
 # APPLE LOCAL begin gcov 5573505
 # -pipe because there's an assembler bug, 4077127, which causes
 # it to not properly process the first # directive, causing temporary


More information about the llvm-dev mailing list