Re: System wide and user specific include and lib directories

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Apr 7, 2010 at 9:53 AM, Ian Lance Taylor <iant@xxxxxxxxxx> wrote:
> Peng Yu <pengyu.ut@xxxxxxxxx> writes:
>
>> -I and -L options can be used to specify additional include and lib
>> directories. Could you let me know where are the system wide
>> configuration files and user specific configuration files where I can
>> specific the directories so that I don't have to use -I and -L options
>> from command line any more?
>
> Use a shell script to invoke the compiler.

Do you mean to include some command like (with explicit specifications
of -I and -L options) in a script? If you mean this, it not what am
looking for.

gcc -I somthing -L something blah blah blah

The scenario that I am considering is like this.

Suppose I'm going to compile a software from source, which dependents
on some libraries and include files. However, the libraries and
include files in my system is old. Then I install the new libraries
and include files in my home directory.

But the makefile of the package will still look for the old libraries
and include files. To make the package using the new libraries and
include files, I may change the makefile of the package. But I don't
want to change anything in the package, because it might be a
nightmare to do so.

Therefore, I'm looking for a user level configuration so that I can
specify what libraries and include files to use besides system
defaults.

-- 
Regards,
Peng

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux