This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Asking gcc for the include directory location?



So you're method might work at least in principle. The actual commands
presented here don't quite work for me, but I suspect this is due to a
minor issue with the grep options or I/O redirections. (I get the full
output from gcc -v, not just a directory line.)



Sorry, cut'n'pasto. There should be a 2>&1 before the other two redirections - here's the exact line from my command shell:


/artimi $ mkdir -p LOOK_HERE_FOR_SYSTEM_DIR && gcc -v -E - 2>&1 </dev/null

/dev/null -isystem LOOK_HERE_FOR_SYSTEM_DIR | grep -A1
LOOK_HERE_FOR_SYSTEM_DIR | tail -1 /usr/local/include
Yeah, that's a lot better ;-)

- Toralf

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]