What to do when -I's are too long

What to do when -I's are too long

Post by bill » Thu, 27 Apr 2006 23:05:53


I'm trying to create dependencies using gcc -E -M for K's of c/c++
files.
It is spread over 80 directories so the -I gets very long. Too long
for hpux. I get a virtual memory overflow.

Any suggestions on how to get around this?
 
 
 

What to do when -I's are too long

Post by Ralf Fasse » Fri, 28 Apr 2006 01:36:02

* "billy" < XXXX@XXXXX.COM >
| I'm trying to create dependencies using gcc -E -M for K's of c/c++
| files. It is spread over 80 directories so the -I gets very long.
| Too long for hpux. I get a virtual memory overflow.
|
| Any suggestions on how to get around this?

Short symbolic links to the include directories?

ln -s /some/very/long/pathname1 inc1
ln -s /some/very/long/pathname2 inc2
...
gcc -Iinc1 -Iinc2 ...

Perhaps you need to post-process and replace inc1 by
/some/very/long/pathname1 again. Urks.

R'