Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


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

Rep: Reputation: 15
LD_LIBRARY_PATH & LD_FLAGS; what's the difference?

Having some trouble installing software in SUSE 10.0 on an x86_64 machine. New to unix. Something that I need to know is the difference between the LD_LIBRARY_PATH variable and the LD_FLAGS variable. To me they both seem to do the same thing???

Would be grateful if anyone could stick down a few lines explaining the difference/advantage/disadvantage of these variables.

Old 07-27-2006, 11:29 PM   #2
Registered: Mar 2006
Location: Edinburgh
Distribution: Debian Etch, Gentoo
Posts: 90

Rep: Reputation: 16
LD_LIBRARY_PATH is an environment variable used by (the dynamic linker). It allows you to specify directories to search for libraries needed by a program at runtime.

LD_FLAGS is a variable in makefiles normally I believe, and it allows you to pass flags to ld which links object files into an executable. i.e. the command ld $(LD_FLAGS) file1.o file2.o -o file is run.

I THINK this is what they are, but reading the man pages for things related to linking and make might give you more in depth answer.

Last edited by crazyjimbo; 07-27-2006 at 11:31 PM.


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
Difference between LD_LIBRARY_PATH and LD_FLAGS? johnpaulodonnell Linux - Newbie 1 07-27-2006 07:46 AM
difference between NFS&SAMBA alok.rhct Linux - General 2 01-10-2006 10:47 AM
What's the difference between su - & su ? Thaidog Linux - Newbie 7 07-28-2005 03:58 PM
difference between a tv tuner & TV-Out eastsuse General 2 02-08-2005 09:36 PM
Whatís the difference between KDE & Gnome? 360 Linux - General 1 01-05-2003 02:20 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:14 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
Open Source Consulting | Domain Registration