diff options
author | jbj <devnull@localhost> | 2000-07-05 20:39:15 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2000-07-05 20:39:15 +0000 |
commit | a463744b6d4e6e5c0f05730cc77039f4a2e17fd7 (patch) | |
tree | 706b7b087dcc65dc5b357dec2178392c1deb812d /installplatform | |
parent | 0c6891dc9760a7e4de4844abf09bb474643f25c7 (diff) | |
download | librpm-tizen-a463744b6d4e6e5c0f05730cc77039f4a2e17fd7.tar.gz librpm-tizen-a463744b6d4e6e5c0f05730cc77039f4a2e17fd7.tar.bz2 librpm-tizen-a463744b6d4e6e5c0f05730cc77039f4a2e17fd7.zip |
- change optflags for i386.
- multilib patch, take 1.
CVS patchset: 3920
CVS date: 2000/07/05 20:39:15
Diffstat (limited to 'installplatform')
-rwxr-xr-x | installplatform | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/installplatform b/installplatform index ec993c2b8..ec02df4a3 100755 --- a/installplatform +++ b/installplatform @@ -54,10 +54,20 @@ for SUBST in $SUBSTS ; do RPMRC_OPTFLAGS="`echo $RPMRC_OPTFLAGS | sed -e 's, ,\ ,g'`" ARCH_INSTALL_POST='%{nil}' + MULTILIBNO= case "${ARCH}-${OS}" in sparc64-linux) ARCH_INSTALL_POST=${pkglibdir}/brp-sparc64-linux; LIB=lib64 ;; + sparc-linux) MULTILIBNO=1 ;; + sparcv9-linux) MULTILIBNO=1 ;; + sparc64-linux) ARCH_INSTALL_POST=${pkglibdir}/brp-sparc64-linux; LIB=lib64; MULTILIBNO=2 ;; esac + if [ "$MULTILIBNO" ]; then + MULTILIBSED='-e /^@MULTILIB/d -e s,@MULTILIBNO@,'$MULTILIBNO, + else + MULTILIBSED='-e /^@MULTILIBSTART@/,/^@MULTILIBEND@/d' + fi + cat $PLATFORM | \ sed -e "s,@RPMRC_OPTFLAGS@,$RPMRC_OPTFLAGS," \ -e "s,@RPMRC_ARCH@,$base_arch," \ @@ -65,6 +75,7 @@ for SUBST in $SUBSTS ; do -e "s,@ARCH_INSTALL_POST@,$ARCH_INSTALL_POST," \ -e "s,@DEFAULTDOCDIR@,$DEFAULTDOCDIR," \ -e 's,\${,%{_,' \ + $MULTILIBSED \ > ${PPD}/macros # |