LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Difference between LD_LIBRARY_PATH and LD_FLAGS? (https://www.linuxquestions.org/questions/linux-newbie-8/difference-between-ld_library_path-and-ld_flags-468183/)

johnpaulodonnell 07-27-2006 06:29 AM

Difference between LD_LIBRARY_PATH and LD_FLAGS?
 
New to Unix, running SUSE 10.0 on an x86_64 machine. Wondering wha tthe difference between the LD_LIBRARY_PATH variable and the LD_FLAGS variable is. Do they not pretty much do the same thing?

Thanks.

raskin 07-27-2006 07:46 AM

I guess you crossposted. Bad.

Difference: LD_LIBRARY_PATH is for system dynamic linker. It is used when you run compiled ready program.
LD_FLAGS is for compiler's linker. It is used by make (gcc and ld ignore it..) when you are building program, not when you run it.


All times are GMT -5. The time now is 04:14 AM.