350 |
find ${BINDIR} | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded || die |
find ${BINDIR} | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded || die |
351 |
|
|
352 |
# strip all libraries |
# strip all libraries |
|
# want to be safe here; --strip-unneeded seems to cause pthread problems |
|
|
# strip all but libpthread |
|
|
install -d ${BUILDDIR}/thread-backup || die |
|
|
mv ${BINDIR}/usr/$(mlibdir)/lib{pthread,thread_db}* ${BUILDDIR}/thread-backup/ || die |
|
|
|
|
|
# now strip |
|
353 |
find ${BINDIR} | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded || die |
find ${BINDIR} | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded || die |
|
mv -f ${BUILDDIR}/thread-backup/* ${BINDIR}/usr/$(mlibdir)/ || die |
|
|
# remove stale directory |
|
|
rm -rf ${BUILDDIR}/thread-backup || die |
|
354 |
} |
} |
355 |
|
|
356 |
fix_db_files() |
fix_db_files() |