diff --git a/src/tools/gcc.jam b/src/tools/gcc.jam index fdce9657f..3e5dca805 100644 --- a/src/tools/gcc.jam +++ b/src/tools/gcc.jam @@ -358,12 +358,21 @@ toolset.flags gcc.compile DEFINES ; toolset.flags gcc.compile INCLUDES ; toolset.flags gcc.compile.c++ TEMPLATE_DEPTH ; +rule compile.c++.pch ( targets * : sources * : properties * ) +{ + setup-fpic $(targets) : $(sources) : $(properties) ; +} actions compile.c++.pch { "$(CONFIG_COMMAND)" -x c++-header $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)" } +rule compile.c.pch ( targets * : sources * : properties * ) +{ + setup-fpic $(targets) : $(sources) : $(properties) ; +} + actions compile.c.pch { "$(CONFIG_COMMAND)" -x c-header $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)"