On Sun, Aug 19, 2007 at 01:41:32PM +0200, Andre Poenitz wrote: > > Does anybody know what is nowadays the most fashionable way to remove the > directory of the current file from the list of paths gcc searches for > includes? > > The option -I- did that some time ago, but now gcc spits at me 'cc1plus: > note: obsolete option -I- used, please use -iquote instead'. Of course, > -iquote works for part of what -I- does, but forgets about removing the > directory of the current file. So 'it does not work'. > > [I was looking into simplifying the building of tex2lyx. The linking of > files from src/ can be omitted if -I- is used, but 'modern gcc' think it > is unfashionable...]
Hm, seems -ignore-source-dir is intended to fill this gap. Pending gcc patch since 2006... Andre'
