From b22902b143cfc683d8ead576de561385b4892dbb Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Thu, 16 Oct 2008 11:09:46 +0000 Subject: [PATCH] Properly add -fPIC on intel-linux. [SVN r49357] --- src/tools/intel-linux.jam | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/tools/intel-linux.jam b/src/tools/intel-linux.jam index 7a29e4a00..adce18564 100644 --- a/src/tools/intel-linux.jam +++ b/src/tools/intel-linux.jam @@ -79,11 +79,21 @@ flags intel-linux.compile OPTIONS off : -w0 ; flags intel-linux.compile OPTIONS on : -w1 ; flags intel-linux.compile OPTIONS all : -w2 ; +rule compile.c++ ( targets * : sources * : properties * ) +{ + gcc.setup-fpic $(targets) : $(sources) : $(properties) ; +} + actions compile.c++ { "$(CONFIG_COMMAND)" -c -xc++ $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)" } +rule compile.c++ ( targets * : sources * : properties * ) +{ + gcc.setup-fpic $(targets) : $(sources) : $(properties) ; +} + actions compile.c { "$(CONFIG_COMMAND)" -c -xc $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)"