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 | 4332792deb7cd4c43bcd9cda23fdbe01dcc90154 (patch) | |
tree | 1dc32a821bc186df093b0270e284391330b00968 /utils/buildit | |
parent | 96749678c9d4cf73d8cbc108a2f2f4872e4e4413 (diff) | |
download | external_llvm-4332792deb7cd4c43bcd9cda23fdbe01dcc90154.zip external_llvm-4332792deb7cd4c43bcd9cda23fdbe01dcc90154.tar.gz external_llvm-4332792deb7cd4c43bcd9cda23fdbe01dcc90154.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108753 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/buildit')
-rwxr-xr-x | utils/buildit/build_llvm | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/utils/buildit/build_llvm b/utils/buildit/build_llvm index 37ef16e..47bdc59 100755 --- a/utils/buildit/build_llvm +++ b/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 |