From 2c93f65b54363c6f35afedba7abcd1694fd4bd80 Mon Sep 17 00:00:00 2001 From: "K. Noel Belcourt" Date: Tue, 25 Sep 2007 03:39:06 +0000 Subject: [PATCH] Get pic and threading working with pathscale. [SVN r39518] --- v2/tools/pathscale.jam | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/v2/tools/pathscale.jam b/v2/tools/pathscale.jam index 6762ffa0b..4281c1f32 100644 --- a/v2/tools/pathscale.jam +++ b/v2/tools/pathscale.jam @@ -52,6 +52,7 @@ generators.register-fortran90-compiler pathscale.compile.fortran90 : FORTRAN90 : # Declare flags and actions for compilation flags pathscale.compile OPTIONS on : -g ; flags pathscale.compile OPTIONS on : -pg ; +flags pathscale.compile OPTIONS shared : -fPIC ; flags pathscale.compile OPTIONS speed : -O2 ; flags pathscale.compile OPTIONS space : -Os ; flags pathscale.compile OPTIONS 32 : -m32 ; @@ -61,8 +62,6 @@ flags pathscale.compile OPTIONS off : -woffall ; flags pathscale.compile OPTIONS on : -Wall ; flags pathscale.compile OPTIONS all : -Wall ; -# flags pathscale.compile OPTIONS multi : -mt ; - flags pathscale.compile.c++ OPTIONS off : -noinline ; flags pathscale.compile OPTIONS ; @@ -108,11 +107,11 @@ flags pathscale.link OPTIONS on : -g ; # Strip the binary when no debugging is needed flags pathscale.link OPTIONS off : -g0 ; flags pathscale.link OPTIONS on : -pg ; -# flags pathscale.link OPTIONS multi : -mt ; flags pathscale.link OPTIONS ; flags pathscale.link LINKPATH ; flags pathscale.link FINDLIBS-ST ; flags pathscale.link FINDLIBS-SA ; +flags pathscale.link FINDLIBS-SA multi : pthread ; flags pathscale.link LIBRARIES ; flags pathscale.link LINK-RUNTIME static : static ; flags pathscale.link LINK-RUNTIME shared : dynamic ;