- add brp-strip-shared script <rodrigob@conectiva.com.br>.
CVS patchset: 4231 CVS date: 2000/10/28 17:30:58
This commit is contained in:
parent
3ad99fcba5
commit
e407eeefe7
1
CHANGES
1
CHANGES
|
@ -20,6 +20,7 @@
|
|||
- add cscope/ctags (Rodrigo Barbosa<rodrigob@conectiva.com.br>).
|
||||
- remove getMacroBody() from rpmio API.
|
||||
- hide libio lossage in prototype, not API.
|
||||
- add brp-strip-shared script <rodrigob@conectiva.com.br>.
|
||||
|
||||
3.0.6 -> 4.0
|
||||
- use DIRNAMES/BASENAMES/DIRINDICES not FILENAMES in packages and db.
|
||||
|
|
|
@ -4,6 +4,7 @@ AUTOMAKE_OPTIONS = 1.4 foreign
|
|||
|
||||
EXTRA_DIST = \
|
||||
brp-compress brp-redhat brp-strip brp-strip-comment-note \
|
||||
brp-strip-shared \
|
||||
brp-sparc64-linux check-prereqs convertrpmrc.sh find-lang.sh \
|
||||
find-prov.pl find-req.pl cpanflute find-provides.perl \
|
||||
find-requires.perl get_magic.pl getpo.sh http.req \
|
||||
|
@ -17,6 +18,7 @@ all:
|
|||
configdir = ${prefix}/lib/rpm
|
||||
config_SCRIPTS = \
|
||||
brp-compress brp-redhat brp-strip brp-strip-comment-note \
|
||||
brp-strip-shared \
|
||||
brp-sparc64-linux check-prereqs convertrpmrc.sh find-lang.sh \
|
||||
find-prov.pl find-req.pl cpanflute find-provides.perl \
|
||||
find-requires.perl get_magic.pl getpo.sh http.req \
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
# Conectiva brp - strip shared libraries. Based on Red Hat's brp-strip.
|
||||
# Thu Apr 20 - Guilherme Manika <gwm@conectiva.com.br>
|
||||
# Created file
|
||||
|
||||
if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Strip ELF shared objects
|
||||
# Please note we don't restrict our search to executable files because
|
||||
# our libraries are not (should not be, at least) +x.
|
||||
for f in `find $RPM_BUILD_ROOT -type f -a -exec file {} \; | \
|
||||
grep ' shared object,' | \
|
||||
sed -n -e 's/^\(.*\):[ ]*ELF.*, not stripped/\1/p'`; do
|
||||
strip --strip-unneeded $f
|
||||
done
|
Loading…
Reference in New Issue