* doc/invoke.texi: update documentation WRT .so libraries in -l --- gcc/ChangeLog | 4 ++++ gcc/doc/invoke.texi | 8 +++++--- 2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1d60690..0a6acdb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2016-01-30 Arkadiusz Drabczyk <arkadi...@drabczyk.org> + + * doc/invoke.texi: update documentation WRT .so libraries in -l + 2016-01-29 Martin Jambor <mjam...@suse.cz> * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK. diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index ba0b4b2..8b1b329 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -10440,9 +10440,11 @@ whose members are object files. The linker handles an archive file by scanning through it for members which define symbols that have so far been referenced but not defined. But if the file that is found is an ordinary object file, it is linked in the usual fashion. The only -difference between using an @option{-l} option and specifying a file name -is that @option{-l} surrounds @var{library} with @samp{lib} and @samp{.a} -and searches several directories. +difference between using an @option{-l} option and specifying a file +name is that @option{-l} surrounds @var{library} with @samp{lib} and +@samp{.so} on systems with shared libraries support or with @samp{.a} if +@var{library} with @samp{.so} is not found and on all other systems and +searches several directories. @item -lobjc @opindex lobjc -- 1.8.4 -- Arkadiusz Drabczyk <arkadi...@drabczyk.org>