public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/40794]  New: LIBRARY_PATH not processed
@ 2009-07-18  3:38 philippe at fornux dot com
  2009-07-18  8:55 ` [Bug c++/40794] " rguenth at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: philippe at fornux dot com @ 2009-07-18  3:38 UTC (permalink / raw)
  To: gcc-bugs

Greetings,

I am trying linking a shared library from my $HOME/lib path.  If I compile
using -L $HOME/lib it works properly.  If I set 'export LIBRARY_PATH=$HOME/lib'
before compiling it complains it can't find the library:
/usr/bin/ld: cannot find -lmylib


Thanks.


-- 
           Summary: LIBRARY_PATH not processed
           Product: gcc
           Version: 4.1.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: philippe at fornux dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40794


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/40794] LIBRARY_PATH not processed
  2009-07-18  3:38 [Bug c++/40794] New: LIBRARY_PATH not processed philippe at fornux dot com
@ 2009-07-18  8:55 ` rguenth at gcc dot gnu dot org
  2009-07-18 22:33 ` philippe at fornux dot com
  2009-07-19  8:53 ` rguenth at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-07-18  8:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2009-07-18 08:55 -------
LIBRARY_PATH is not used by the linker.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40794


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/40794] LIBRARY_PATH not processed
  2009-07-18  3:38 [Bug c++/40794] New: LIBRARY_PATH not processed philippe at fornux dot com
  2009-07-18  8:55 ` [Bug c++/40794] " rguenth at gcc dot gnu dot org
@ 2009-07-18 22:33 ` philippe at fornux dot com
  2009-07-19  8:53 ` rguenth at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: philippe at fornux dot com @ 2009-07-18 22:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from philippe at fornux dot com  2009-07-18 22:32 -------
Well if I set 'export GCC_EXEC_PATH=$HOME/lib' it works correctly.  

Nevertheless perhaps LIBRARY_PATH should be passed to the linker if GCC is
responsible for the linkage.  


-- 

philippe at fornux dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40794


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/40794] LIBRARY_PATH not processed
  2009-07-18  3:38 [Bug c++/40794] New: LIBRARY_PATH not processed philippe at fornux dot com
  2009-07-18  8:55 ` [Bug c++/40794] " rguenth at gcc dot gnu dot org
  2009-07-18 22:33 ` philippe at fornux dot com
@ 2009-07-19  8:53 ` rguenth at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-07-19  8:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rguenth at gcc dot gnu dot org  2009-07-19 08:53 -------
LIBRARY_PATH is used only for GCC internal files, not user libraries.
Just use -L.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40794


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-07-19  8:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-18  3:38 [Bug c++/40794] New: LIBRARY_PATH not processed philippe at fornux dot com
2009-07-18  8:55 ` [Bug c++/40794] " rguenth at gcc dot gnu dot org
2009-07-18 22:33 ` philippe at fornux dot com
2009-07-19  8:53 ` rguenth at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).