| } |
} |
| |
|
| src_strip() { |
src_strip() { |
| # Now, strip everything but the thread libs #46186, as well as the dynamic |
# gdb is lame and requires some debugging information to remain in |
| # linker, else we cannot set breakpoints in shared libraries due to bugs in |
# libpthread, so we need to strip it by hand. libthread_db makes no |
| # gdb. Also want to grab stuff in tls subdir. whee. |
# sense stripped as it is only used when debugging. |
| |
local pthread=$(hasq splitdebug ${FEATURES} && echo "libthread_db" || echo "lib{pthread,thread_db}") |
| env \ |
env \ |
| -uRESTRICT \ |
-uRESTRICT \ |
| CHOST=${CTARGET} \ |
CHOST=${CTARGET} \ |
| STRIP_MASK="/*/{,tls/}libthread_db*" \ |
STRIP_MASK="/*/{,tls/}${pthread}*" \ |
| prepallstrip |
prepallstrip |
| |
# if user has stripping enabled and does not have split debug turned on, |
| |
# then leave the debugging sections in libpthread. |
| |
if ! hasq nostrip ${FEATURES} && ! hasq splitdebug ${FEATURES} ; then |
| |
${STRIP:-${CTARGET}-strip} --strip-debug "${D}"/*/libpthread-*.so |
| |
fi |
| } |
} |
| |
|
| eblit-glibc-src_install() { |
eblit-glibc-src_install() { |