From 4ac30650e107efc3d205147170e22ec3101913bf Mon Sep 17 00:00:00 2001
From: Reid Spencer Put $CFEINSTALL/bin into your PATH environment
+variable. Go back into the LLVM source tree proper. Rerun configure, using
-the
% cd build
% ../src/configure --prefix=$CFEINSTALL --disable-threads --disable-nls \
- --disable-shared --enable-languages=c,c++
+ --disable-shared --enable-languages=c,c++ --program-prefix=llvm-
% gmake all; gmake install
@@ -140,7 +140,8 @@ invalid code. Instead, use the system assembler and linker.
% cd build
% ../src/configure --prefix=$CFEINSTALL --disable-threads --disable-nls \
- --disable-shared --enable-languages=c,c++ --disable-c-mbchar
+ --disable-shared --enable-languages=c,c++ --disable-c-mbchar \
+ --program-prefix=llvm-
% gmake all; gmake install
@@ -158,7 +159,7 @@ functions from C as referenced from C++, so we typically configure with
% cd build
% ../src/configure --prefix=$CFEINSTALL --disable-threads --disable-nls \
--disable-shared --enable-languages=c,c++ --host=sparcv9-sun-solaris2.8 \
- --disable-c-mbchar
+ --disable-c-mbchar --program-prefix=llvm-
% gmake all; gmake install
@@ -207,9 +208,18 @@ functions from C as referenced from C++, so we typically configure with
+
+
+--with-llvmgccdir=$CFEINSTALL
option to specify the path
-to the newly built GCC front-end.
If you edited header files during the C/C++ front-end build as
described in "Fix 1" above, you must now copy those header files from
@@ -217,7 +227,7 @@ described in "Fix 1" above, you must now copy those header files from
$CFEINSTALL/lib/gcc/target-triplet/3.4-llvm/include
.
(This should be the "include" directory in the same directory as the
libgcc.a library, which you can find by running
-$CFEINSTALL/bin/gcc --print-libgcc-file-name
.)
$CFEINSTALL/bin/llvm-gcc --print-libgcc-file-name
.)
Rebuild your CVS tree. This shouldn't cause the whole thing to be rebuilt, but it should build the runtime libraries. After the tree is @@ -230,9 +240,9 @@ libgcc.a library, which you can find by running
Optionally, build a symbol table for the newly installed runtime -libraries. Although this step is optional, you are encouraged to do this as the -symbol tables will make a significant difference in your link times. Use -the llvm-ranlib tool to do this, as follows:
+libraries. Although this step is optional, you are strongly encouraged to +do this as the symbol tables will make a significant difference in your +link times. Use the llvm-ranlib tool to do this, as follows:% cd $CFEINSTALL/lib % llvm-ranlib libiberty.a @@ -246,8 +256,8 @@ the llvm-ranlib tool to do this, as follows:
Test the newly-installed C frontend by one or more of the following means: