Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-27-2006, 06:29 AM   #1
Registered: Jun 2006
Location: Galway
Distribution: Suse 10.1
Posts: 114

Rep: Reputation: 15
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?

Old 07-27-2006, 07:46 AM   #2
Senior Member
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (
Posts: 1,900

Rep: Reputation: 68
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ld_library_path fng_#1 Linux - Software 4 09-19-2004 11:33 PM
???? Ld_library_path ???? g452 Linux - Software 9 08-26-2004 03:00 PM
Ld_library_path barrys Mandriva 2 06-15-2004 12:19 PM
Ld_library_path Dogface1SG Linux - Software 1 11-16-2003 01:28 AM
where is LD_LIBRARY_PATH Ninja_212 Slackware 4 10-07-2003 10:41 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:06 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration