On Mon, 5 Dec 2011 20:07:00 +0000
Andrew Benton <[email protected]> wrote:
> I've had a look at llvm-3.0 and this seems to work:
>
> touch tools/edis/EnhancedDisassembly.exports
> ./configure --prefix=/usr
> sed -i 's#BUILD_ARCHIVE :*= 1#NO_BUILD_ARCHIVE = 1#' \
> $(grep -rl 'BUILD_ARCHIVE :*= 1' .)
> find . -name Makefile -exec sed -i '/SHARED_LIBRARY/d
> /^LIBRARYNAME/a SHARED_LIBRARY = 1' {} \;
> for thing in {utils/{F,f,n,Tab}*,projects/sample/tools/sample}/Makefile
> do sed -i -e '/^USEDLIBS/s# \([A-Za-z]*\).a# -l\1#g' \
> -e 's#^USEDLIBS#LDFLAGS#' ${thing}
> done
> make -j4
> make install
I've tidied that up a bit:
sed -i 's#x)/docs#x)/share/doc#' Makefile.config.in
touch tools/edis/EnhancedDisassembly.exports
./configure --prefix=/usr
find . -name Makefile -exec sed -i -e '/^LIBRARYNAME/a SHARED_LIBRARY = 1' \
-e 's#^BUILD_ARCHIVE :*= 1#NO_BUILD_ARCHIVE = 1#' \
-e '/^USEDLIBS/s# \([A-Za-z]*\).a# -l\1#g' \
-e 's#^USEDLIBS#LDFLAGS#' {} \;
make -j4
make check
make install
Andy
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page