1
0
Fork 0

Detect Irix/CC compiler and substitute AR="CC -ar".

This commit is contained in:
curt 2001-06-01 17:13:03 +00:00
parent b2f9dbd597
commit 145c137433

View file

@ -2,10 +2,7 @@
for n in `find . -name Makefile`; do \ for n in `find . -name Makefile`; do \
echo "Fixing file $n"; \ echo "Fixing file $n"; \
\
mv -f $n $n.ar-new; \
sed 's/^AR = ar/AR = CC -ar/g' $n.ar-new > $n;
\
mv -f $n $n.ar-new; \ mv -f $n $n.ar-new; \
sed 's/$(AR) cru /$(AR) -o /g' $n.ar-new > $n; \ sed 's/$(AR) cru /$(AR) -o /g' $n.ar-new > $n; \
rm -f $n.ar-new; \
done done