[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: make loses LD_LIBRARY_PATH
From: |
Adam Fedor |
Subject: |
Re: make loses LD_LIBRARY_PATH |
Date: |
Wed, 23 Jan 2002 13:07:56 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:0.9.7) Gecko/20020120 |
Paul D. Smith wrote:
GNU make has been installed as a setgid program. Various "dangerous"
environment variables like LD_LIBRARY_PATH are removed from the
environment of setuid and setgid programs (I'm sure you can understand
why!!)
It's odd that it was installed that way, though; it only does that on
systems where it thinks it needs to be setgid kmem or similar to read
the kernel memory to find the load average information, for -l.
On Linux you don't need that, since there are other ways to find it that
don't require privileges.
You might take a look through your config.log file and see if you can
determine why configure decided it needed to be setgid.
Thanks for the explanation.
In configure, the autoconf macro AC_FUNC_GETLOADAVG checks if there is a
getloadavg function in -lutil, if so it automatically sets
ac_cv_func_getloadavg_setgid=yes. That seems a little presumptuous to me.
This is for autoconf 2.13
--
Adam Fedor, Digital Optics | I'm glad I hate spinach, because
http://www.doc.com | if I didn't, I'd eat it, and you
http://www.gnustep.org | know how I hate the stuff.