diff options
| author | Bob Wilson <bob.wilson@apple.com> | 2010-07-19 21:33:07 +0000 |
|---|---|---|
| committer | Bob Wilson <bob.wilson@apple.com> | 2010-07-19 21:33:07 +0000 |
| commit | a7d44a1ab698df5647085b6887a8d191ca3dd858 (patch) | |
| tree | 8d0e22e7ed09d19f6029cfa3c9ebb97f9fbb52a5 /llvm/utils/buildit/build_llvm | |
| parent | ce81542d61073dbb7539e60aa09ab33478496a4e (diff) | |
| download | bcm5719-llvm-a7d44a1ab698df5647085b6887a8d191ca3dd858.tar.gz bcm5719-llvm-a7d44a1ab698df5647085b6887a8d191ca3dd858.zip | |
Save a copy of the unstripped libLTO.dylib in $SYM_DIR. Clean up the code
for dealing with libLTO.dylib to put it all in one place and to allow
use of DISABLE_USR_LINKS.
llvm-svn: 108753
Diffstat (limited to 'llvm/utils/buildit/build_llvm')
| -rwxr-xr-x | llvm/utils/buildit/build_llvm | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/llvm/utils/buildit/build_llvm b/llvm/utils/buildit/build_llvm index 37ef16e6df6..47bdc599fc3 100755 --- a/llvm/utils/buildit/build_llvm +++ b/llvm/utils/buildit/build_llvm @@ -317,9 +317,20 @@ if [ "$INSTALL_LIBLTO" = "yes" ]; then mkdir -p $DT_HOME/lib mv lib/libLTO.dylib $DT_HOME/lib/libLTO.dylib + # Save a copy of the unstripped dylib + mkdir -p $SYM_DIR/Developer/usr/lib + cp $DT_HOME/lib/libLTO.dylib $SYM_DIR/Developer/usr/lib/libLTO.dylib + # Use '-l' to strip i386 modules. N.B. that flag doesn't work with kext or # PPC objects! strip -arch all -Sl $DT_HOME/lib/libLTO.dylib + + if [ "x$DISABLE_USR_LINKS" == "x" ]; then + # Add a symlink in /usr/lib for B&I. + mkdir -p $DEST_DIR/usr/lib/ + (cd $DEST_DIR/usr/lib && \ + ln -s ../../Developer/usr/lib/libLTO.dylib ./libLTO.dylib) + fi else rm -f lib/libLTO.dylib fi @@ -350,15 +361,6 @@ chgrp -R wheel $DEST_DIR rm -rf $DEST_DIR$DEST_ROOT/docs ################################################################################ -# symlinks so that B&I can find things - -if [ "$INSTALL_LIBLTO" = "yes" ]; then - mkdir -p $DEST_DIR/usr/lib/ - cd $DEST_DIR/usr/lib && \ - ln -s ../../Developer/usr/lib/libLTO.dylib ./libLTO.dylib -fi - -################################################################################ # w00t! Done! exit 0 |

