Following is an example that illustrates efficient use of the ld command:
# ld -r libfoo.a -o libfooa.o
# xlf something.f libfooa.o
Notice that the prebound library is treated as another ordinary input file, not with the usual library identification syntax (-lfoo).
# xlf something.f a.out
# !/usr/bin/ksh # Shell script for source file replacement bind # xlf something.f a.out rc=$? if [ "$rc" != 0 ] then echo "New function added ... using libfooa.o" xlf something.o libfooa.o fi