Re: Environment variable equivalent of -L

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

 



On Mon, Mar 28, 2022 at 09:04:53AM -0500, Ian Pilcher via Gcc-help wrote:
> I am using GCC as a cross compiler, which results in some crazy long
> command lines, because of all the directories that need to be passed
> with the -I and -L options.
> 
> I've found the CPATH variable, for include file paths (-I equivalent),
> but I haven't found anything that works like -L.  I tried LIBRARY_PATH,
> but that didn't work.
> 
> Am I missing something, or is there just no such variable?

You could use what in DOS was called a response file:
'@FILE'
     Read command-line options from FILE.  The options read are inserted
     in place of the original @FILE option.  If FILE does not exist, or
     cannot be read, then the option will be treated literally, and not
     removed.


Segher



[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