llvm.org GIT mirror llvm / 0a7e18c
Use -l option to remove symbols from i386. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107212 91177308-0d34-0410-b5e6-96231b3b80d8 Bill Wendling 9 years ago
1 changed file(s) with 13 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
243243
244244 if [ "x$LLVM_DEBUG" != "x1" ]; then
245245 # Strip local symbols from llvm libraries.
246 strip -S $DEST_DIR$DEST_ROOT/lib/*.[oa]
246 #
247 # Use '-l' to strip i386 modules. N.B. that flag doesn't work with kext or
248 # PPC objects!
249 strip -Sl $DEST_DIR$DEST_ROOT/lib/*.[oa]
247250 for f in `ls $DEST_DIR$DEST_ROOT/lib/*.so`; do
248 strip -Sx $f
251 strip -Sxl $f
249252 done
250253 fi
251254
322325 if [ "$INSTALL_LIBLTO" = "yes" ]; then
323326 mkdir -p $DT_HOME/lib
324327 mv lib/libLTO.dylib $DT_HOME/lib/libLTO.dylib
325 strip -S $DT_HOME/lib/libLTO.dylib
328
329 # Use '-l' to strip i386 modules. N.B. that flag doesn't work with kext or
330 # PPC objects!
331 strip -arch all -Sl $DT_HOME/lib/libLTO.dylib
326332 fi
327333 rm -f lib/libLTO.a lib/libLTO.la
328334
335341 find $DEST_DIR -name \*.dSYM -print | xargs rm -r || exit 1
336342
337343 # Strip debugging information from files
344 #
345 # Use '-l' to strip i386 modules. N.B. that flag doesn't work with kext or
346 # PPC objects!
338347 find $DEST_DIR -perm -0111 -type f \
339348 ! \( -name '*.la' -o -name gccas -o -name gccld -o -name llvm-config \) \
340 -print | xargs -n 1 -P ${SYSCTL} strip -S
349 -print | xargs -n 1 -P ${SYSCTL} strip -arch all -Sl
341350
342351 chgrp -h -R wheel $DEST_DIR
343352 chgrp -R wheel $DEST_DIR