* allow to set value on cmdline since llvm versions don't work atm.

* also patch gprt0.as

git-svn-id: trunk@35100 -
This commit is contained in:
marco 2016-12-10 15:04:32 +00:00
parent e51da008fe
commit 02e2b8752d

View File

@ -1,12 +1,18 @@
#!/bin/sh
if [ "$#" -ne 1 ]
then
elfdump -n `which elfdump` |awk '/FreeBSD/{print $2}' >elfversion
IDVERSION=`cat elfversion`
rm elfversion
else
IDVERSION=$1
fi
echo Patching cprt0.as with version $IDVERSION
sed -I.sav -es/900044/$IDVERSION/ cprt0.as
sed -I.sav -es/900044/$IDVERSION/ dllprt0.as
sed -I.sav -es/900044/$IDVERSION/ prt0.as
sed -I.sav -es/900044/$IDVERSION/ gprt0.as
sed -I.sav -es/900044/$IDVERSION/ si_c.inc
sed -I.sav -es/900044/$IDVERSION/ si_prc.inc