From: Ralf Wildenhues Date: Wed, 15 Feb 2006 07:02:38 +0000 (+0000) Subject: * doc/libtool.texi (Implementation issues): Note that both X-Git-Tag: release-2-1b~318 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=977f953b82a54f4e1a2df9a9497f731463a8a6d0;p=thirdparty%2Flibtool.git * doc/libtool.texi (Implementation issues): Note that both prefix and suffix of a library may differ. (Using libtool, Creating object files, Linking libraries): Remove last documentation traces of the age when `foo.lo' was the PIC object file and not the `libtool object' text file. (libtool script contents) : Remove description of this variable. It was removed from libtool in 1.5 times. --- diff --git a/ChangeLog b/ChangeLog index 45bbd8115..05acda559 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2006-02-15 Ralf Wildenhues + + * doc/libtool.texi (Implementation issues): Note that both + prefix and suffix of a library may differ. + (Using libtool, Creating object files, Linking libraries): + Remove last documentation traces of the age when `foo.lo' was + the PIC object file and not the `libtool object' text file. + (libtool script contents) : Remove description + of this variable. It was removed from libtool in 1.5 times. + 2006-02-13 Ralf Wildenhues * libltdl/config/ltmain.m4sh (func_mode_link) [ linux ]: diff --git a/doc/libtool.texi b/doc/libtool.texi index 42dc1123d..14376db87 100644 --- a/doc/libtool.texi +++ b/doc/libtool.texi @@ -322,9 +322,10 @@ host to host. These need to be determined at configure time in a consistent way. @item -It is not always obvious with what suffix a shared library should be -installed. This makes it difficult for @file{Makefile} rules, since they -generally assume that file names are the same from host to host. +It is not always obvious with what prefix or suffix a shared library +should be installed. This makes it difficult for @file{Makefile} rules, +since they generally assume that file names are the same from host to +host. @item The system needs a simple library version number abstraction, so that @@ -439,8 +440,8 @@ Note that the @file{foo.c} source file uses the @code{cos} math library function, which is usually found in the standalone math library, and not the C library (@pxref{Trig Functions, , Trigonometric Functions, libc, The GNU C Library Reference Manual}). So, we need to add @option{-lm} to -the end of the link line whenever we link @file{foo.o} or @file{foo.lo} -into an executable or a library (@pxref{Inter-library dependencies}). +the end of the link line whenever we link @file{foo.lo} into an +executable or a library (@pxref{Inter-library dependencies}). The same rule applies whenever you use functions that don't appear in the standard C library@dots{} you need to add the appropriate @@ -473,8 +474,8 @@ burger$ @kbd{gcc -g -O -c main.c} burger$ @end example -The above compiler command produces an object file, @file{main.o}, from -the source file @file{main.c}. +The above compiler command produces an object file, usually named +@file{main.o}, from the source file @file{main.c}. For most library systems, creating object files that become part of a static library is as simple as creating object files that are linked to @@ -665,7 +666,7 @@ Now, let's try the same trick on the shared library platform: burger$ @kbd{libtool --mode=link gcc -g -O -o libhello.la foo.lo hello.lo \ -rpath /usr/local/lib -lm} rm -fr @value{objdir}/libhello.a @value{objdir}/libhello.la -ld -Bshareable -o @value{objdir}/libhello.so.0.0 foo.lo hello.lo -lm +ld -Bshareable -o @value{objdir}/libhello.so.0.0 @value{objdir}/foo.o @value{objdir}/hello.o -lm ar cru @value{objdir}/libhello.a foo.o hello.o ranlib @value{objdir}/libhello.a creating libhello.la @@ -5228,12 +5229,6 @@ Whether the compiler supports the @option{-c} and @option{-o} options simultaneously. Set to @samp{yes} or @samp{no}. @end defvar -@defvar compiler_o_lo -Whether the compiler supports compiling directly to a @samp{.lo} file, -i.e.@: whether object files do not have to have the suffix @samp{.o}. -Set to @samp{yes} or @samp{no}. -@end defvar - @defvar dlopen_support Whether @code{dlopen} is supported on the platform. Set to @samp{yes} or @samp{no}.