[llvm-commits] [llvm-gcc-4.2] r55909 - /llvm-gcc-4.2/trunk/README.LLVM
Anton Korobeynikov
asl at math.spbu.ru
Mon Sep 8 07:37:04 PDT 2008
Author: asl
Date: Mon Sep 8 09:37:03 2008
New Revision: 55909
URL: http://llvm.org/viewvc/llvm-project?rev=55909&view=rev
Log:
We do support multilib! Clarify possible issues & fixes.
Modified:
llvm-gcc-4.2/trunk/README.LLVM
Modified: llvm-gcc-4.2/trunk/README.LLVM
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/README.LLVM?rev=55909&r1=55908&r2=55909&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/README.LLVM (original)
+++ llvm-gcc-4.2/trunk/README.LLVM Mon Sep 8 09:37:03 2008
@@ -57,8 +57,42 @@
//===-----------------------
X86-64/AMD-64/EM64-T for any OS other than Darwin/Mac OS X:
-If you get a build error, try configuring with --disable-multilib.
+If you want to build multilib-enabled llvm-gcc (so, it will be able to generate
+32 and 64 bit executables) you need to consider you system default lib directory
+layout.
+
+Usually, your system uses one of these layouts:
+
+I. /usr/lib => 32 bit libraries (also in /usr/lib32)
+ /usr/lib64 => 64 bit libraries
+
+You're lucky and don't need to do anything, just proceed to usual configure
+steps.
+
+II. /usr/lib => 64 bit libraries (also in /usr/lib64)
+ /usr/lib32 => 32 bit libraries
+
+You need to apply the following patch:
+
+<==cut==>
+--- gcc/config/i386/t-linux64
++++ gcc/config/i386/t-linux64
+@@ -6,7 +6,7 @@ SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver \
+
+ MULTILIB_OPTIONS = m64/m32
+ MULTILIB_DIRNAMES = 64 32
+-MULTILIB_OSDIRNAMES = ../lib64 ../lib
++MULTILIB_OSDIRNAMES = ../lib64 ../lib32
+
+ LIBGCC = stmp-multilib
+ INSTALL_LIBGCC = install-multilib
+<==cut==>
+
+Note, that usually you don't notice such patching with your native gcc, since
+it's done automatically by your favourite system package manager. Maybe we'll
+add some layout detection routine in the future.
+If you want just pure 64 bit compiler, configure with with --disable-multilib.
//===-----------------------
Darwin/Mac OS X Instructions:
More information about the llvm-commits
mailing list