llvm.org GIT mirror llvm / 4332792
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 Bob Wilson 9 years ago
1 changed file(s) with 11 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
316316 mkdir -p $DT_HOME/lib
317317 mv lib/libLTO.dylib $DT_HOME/lib/libLTO.dylib
318318
319 # Save a copy of the unstripped dylib
320 mkdir -p $SYM_DIR/Developer/usr/lib
321 cp $DT_HOME/lib/libLTO.dylib $SYM_DIR/Developer/usr/lib/libLTO.dylib
322
319323 # Use '-l' to strip i386 modules. N.B. that flag doesn't work with kext or
320324 # PPC objects!
321325 strip -arch all -Sl $DT_HOME/lib/libLTO.dylib
326
327 if [ "x$DISABLE_USR_LINKS" == "x" ]; then
328 # Add a symlink in /usr/lib for B&I.
329 mkdir -p $DEST_DIR/usr/lib/
330 (cd $DEST_DIR/usr/lib && \
331 ln -s ../../Developer/usr/lib/libLTO.dylib ./libLTO.dylib)
332 fi
322333 else
323334 rm -f lib/libLTO.dylib
324335 fi
349360 rm -rf $DEST_DIR$DEST_ROOT/docs
350361
351362 ################################################################################
352 # symlinks so that B&I can find things
353
354 if [ "$INSTALL_LIBLTO" = "yes" ]; then
355 mkdir -p $DEST_DIR/usr/lib/
356 cd $DEST_DIR/usr/lib && \
357 ln -s ../../Developer/usr/lib/libLTO.dylib ./libLTO.dylib
358 fi
359
360 ################################################################################
361363 # w00t! Done!
362364
363365 exit 0