This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: unsetting LD_LIBRARY_PATH


Robert P. J. Day wrote:
  just tried a build for sh3, the only change i made was to edit
sh3.dat and add the line:

GLIBC_EXTRA_CONFIG="--without-fp"

then ran:

$ sh demo-sh3.sh

eventually, i got:

glibc refuses to build if LD_LIBRARY_PATH is set. Please unset it
before running  this script.

  ok, so what's the accepted solution for this?  should one edit
sh3.dat and change that as well?  that seems kind of hacky.  i would
have thought the build process would take care of this sort of thing
automatically.  or have i overlooked something painfully trivial?
(yeah, probably).

Could you give the command env | LD and see if you already have LD_LIBRARY_PATH set. If you do, clear it with a command like unset LD_LIBRARY_PATH before running the script.

The script could clear that variable itself, but that would
be a dirty trick, so I felt it was best to just tell the
user their environment was unacceptable to glibc's build system.

Can you think of any way to make the error message clearer?
- Dan

--
Trying to get a job as a c++ developer?  See http://kegel.com/academy/getting-hired.html

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]