October 2000
Intermediate to advanced
432 pages
9h 9m
English
libtool's interlibrary dependency support uses the native implementation if there is one available. If there is no native implementation, or if the native implementation is broken or incomplete, libtool uses an implementation of its own.
You build 'libtrim' as a standard Libtool library (see Section 9.2, "The Libtool Library" ) as follows:
$ rm hello *.a *.o $ ls hello.c main.c trim.c $ libtool gcc -c trim.c rm -f .libs/trim.lo gcc -c -fPIC -DPIC trim.c -o .libs/trim.lo gcc -c trim.c -o trim.o >/dev/null 2>&1 mv -f .libs/trim.lo trim.lo $ libtool gcc -rpath /usr/local/lib -o libtrim.la trim.lo rm -fr .libs/libtrim.la .libs/libtrim.* .libs/libtrim.* /opt/gcc-lib/hp821/2.7.0/ld -b +h libtrim.sl.0 +b /usr/local/lib ...
Read now
Unlock full access