Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 378559
Collapse All | Expand All

(-)/usr/lib64/portage/bin/ebuild-helpers/prepstrip (-4 / +4 lines)
Lines 119-132 Link Here
119
# Now we look for unstripped binaries.
119
# Now we look for unstripped binaries.
120
for x in \
120
for x in \
121
	$(scanelf -yqRBF '#k%F' -k '.symtab' "$@") \
121
	$(scanelf -yqRBF '#k%F' -k '.symtab' "$@") \
122
	$(find "$@" -type f -name '*.a')
122
	$(find "$@" -type f -name '*.a' -or -name '*.exe' -or -name '*.dll')
123
do
123
do
124
	if ! ${banner} ; then
124
	if ! ${banner} ; then
125
		vecho "strip: ${STRIP} ${PORTAGE_STRIP_FLAGS}"
125
		vecho "strip: ${STRIP} ${PORTAGE_STRIP_FLAGS}"
126
		banner=true
126
		banner=true
127
	fi
127
	fi
128
128
129
	f=$(file "${x}") || continue
129
	f=$(file -b "${x}") || continue
130
	[[ -z ${f} ]] && continue
130
	[[ -z ${f} ]] && continue
131
131
132
	if ! ${SKIP_STRIP} ; then
132
	if ! ${SKIP_STRIP} ; then
Lines 149-161 Link Here
149
	# actually causes problems.  install sources for all
149
	# actually causes problems.  install sources for all
150
	# elf types though cause that stuff is good.
150
	# elf types though cause that stuff is good.
151
151
152
	if [[ ${f} == *"current ar archive"* ]] ; then
152
	if [[ ${f} == "current ar archive" ]] ; then
153
		vecho "   ${x:${#D}}"
153
		vecho "   ${x:${#D}}"
154
		if ${strip_this} ; then
154
		if ${strip_this} ; then
155
			# hmm, can we split debug/sources for .a ?
155
			# hmm, can we split debug/sources for .a ?
156
			${STRIP} -g "${x}"
156
			${STRIP} -g "${x}"
157
		fi
157
		fi
158
	elif [[ ${f} == *"SB executable"* || ${f} == *"SB shared object"* ]] ; then
158
	elif [[ ${f} == *"SB executable"* || ${f} == *"SB shared object"* || ${f} == "PE32"* ]] ; then
159
		vecho "   ${x:${#D}}"
159
		vecho "   ${x:${#D}}"
160
		save_elf_sources "${x}"
160
		save_elf_sources "${x}"
161
		if ${strip_this} ; then
161
		if ${strip_this} ; then

Return to bug 378559