Lars Gullik Bjønnes wrote:

>  Incidentally, I find that I need to do the
> |ln -s foo/pch.h .
> | magic for src, support, xforms, xforms/forms so far also
> 
> so you didn't try the $(srcdir)/pch.h solution.

Am doing so now. I've just found config/common.am.

 if LYX_BUILD_PCH
-PCH_FLAGS = -Winvalid-pch --include=./pch.h
+PCH_SOURCE = $(srcdir)/pch.h
+PCH_FLAGS = -Winvalid-pch --include=$(PCH_SOURCE)
 PCH_FILE = ./pch.h.gch
-PCH_SOURCE = ./pch.h
 sinclude ./pch.h.gch.dep

Yup. It appears to do the trick.

make[6]: Entering directory g++ -DHAVE_CONFIG_H -I.
-I../../../../../src/frontends/qt2/ui
-I../../../../src-I../../../../../src -I../../../../../src/frontends
-I../../../../../src/frontends/qt2 -I/usr/lib/qt-3.3/include
-I../../../../../boost -I../../../../../src/frontends/controllers \
        -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR -DQT_NO_TRANSLATION
-I/usr/X11R6/include -g -O -fno-exceptions -Wextra -Wall \
-x c++-header ../../../../../src/frontends/qt2/ui/pch.h -MT pch.h.gch -MD
-MP -MF "./pch.h.gch.Tdep" \
&& mv "./pch.h.gch.Tdep" "./pch.h.gch.dep" || rm "./pch.h.gch.Tdep"

-- 
Angus

Reply via email to