1
0
uboot-1.1.4-kirkwood/board/MAI/bios_emulator/scitech/bin/meltobjs.sh

23 lines
345 B
Bash
Raw Normal View History

2024-01-07 23:57:24 +01:00
#! /bin/sh
#
# This script generates a single object file from a set of libraries (*.a files)
# Usage: meltobjs.sh target.o library1.a library2.a ...
#
# (C) SciTech Software, Inc. 1998
#
TMPDIR=/tmp/melt$$
TARGET=$1
TARGETDIR=$PWD
shift
mkdir $TMPDIR
cd $TMPDIR
for a in $*
do
ar x $a
done
ld -r -o $TARGETDIR/$TARGET *.o
rm -fr $TMPDIR