Bug 44803 - LIBRARY_PATH should work on cross-compilers
Summary: LIBRARY_PATH should work on cross-compilers
Status: RESOLVED WONTFIX
Alias: None
Product: gcc
Classification: Unclassified
Component: other (show other bugs)
Version: unknown
: P3 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-03 13:18 UTC by Felipe Contreras
Modified: 2018-09-02 11:51 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felipe Contreras 2010-07-03 13:18:19 UTC
This is specially useful on cross-compiler, I don't know why it's supposed to work only on native ones.
Comment 1 Richard Biener 2010-07-03 21:28:13 UTC
? (you have to give some more details)
Comment 2 Felipe Contreras 2010-08-06 07:08:09 UTC
(In reply to comment #1)
> ? (you have to give some more details)

What exactly do you need?

From the manpage
 LIBRARY_PATH
  The value of LIBRARY_PATH is a colon-separated list of directories, much like PATH.  When configured as a native compiler, GCC
  tries the directories thus specified when searching for special linker files, if it can’t find them using GCC_EXEC_PREFIX.  Linking
  using GCC also uses these directories when searching for ordinary libraries for the -l option (but directories specified with -L
  come first).

I confirm that LIBRARY_PATH is ignored by CodeSourcery cross-compiler, and I don't see why. Wouldn't LIBRARY_PATH be specially useful for cross-comilation?
Comment 3 Felipe Contreras 2010-09-27 01:28:24 UTC
Is this not clear?

It would be useful to cross-compile like this:

export C_INCLUDE_PATH=/opt/arm/ffmpeg/include
export LIBRARY_PATH=/opt/arm/ffmpeg/lib

But LIBRARY_PATH is ignored.
Comment 4 Eric Gallager 2018-03-02 12:03:35 UTC
(In reply to Felipe Contreras from comment #3)
> Is this not clear?
> 
> It would be useful to cross-compile like this:
> 
> export C_INCLUDE_PATH=/opt/arm/ffmpeg/include
> export LIBRARY_PATH=/opt/arm/ffmpeg/lib
> 
> But LIBRARY_PATH is ignored.

this bug showed up in my Assignee_but_not_ASSIGNED saved search. Are you still working on this?
Comment 5 Eric Gallager 2018-06-02 04:09:10 UTC
(In reply to Eric Gallager from comment #4)
> (In reply to Felipe Contreras from comment #3)
> > Is this not clear?
> > 
> > It would be useful to cross-compile like this:
> > 
> > export C_INCLUDE_PATH=/opt/arm/ffmpeg/include
> > export LIBRARY_PATH=/opt/arm/ffmpeg/lib
> > 
> > But LIBRARY_PATH is ignored.
> 
> this bug showed up in my Assignee_but_not_ASSIGNED saved search. Are you
> still working on this?

WAITING on a reply
Comment 6 Eric Gallager 2018-09-02 11:51:34 UTC
(In reply to Eric Gallager from comment #5)
> (In reply to Eric Gallager from comment #4)
> > (In reply to Felipe Contreras from comment #3)
> > > Is this not clear?
> > > 
> > > It would be useful to cross-compile like this:
> > > 
> > > export C_INCLUDE_PATH=/opt/arm/ffmpeg/include
> > > export LIBRARY_PATH=/opt/arm/ffmpeg/lib
> > > 
> > > But LIBRARY_PATH is ignored.
> > 
> > this bug showed up in my Assignee_but_not_ASSIGNED saved search. Are you
> > still working on this?
> 
> WAITING on a reply

No reply; closing