diff --git a/v2/tools/sun.jam b/v2/tools/sun.jam index e00799d58..05426cb93 100644 --- a/v2/tools/sun.jam +++ b/v2/tools/sun.jam @@ -29,7 +29,11 @@ rule init ( version ? : command * : options * ) command = [ common.get-invocation-command sun : CC : $(command) : "/opt/SUNWspro/bin" ] ; - + + # Even if the real compiler is not found, put CC to + # command line so that user see command line that would have being executed. + command ?= CC ; + common.handle-options sun : $(condition) : $(command) : $(options) ; command_c = $(command[1--2]) $(command[-1]:B=cc) ; @@ -84,6 +88,9 @@ flags sun.link RPATH ; # it, even though it's bad idea. flags sun.link RPATH ; +# The POSIX real-time library is always needed (nanosleep, clock_gettime etc.) +flags sun.link FINDLIBS-SA : rt ; + rule link ( targets * : sources * : properties * ) { SPACE on $(targets) = " " ;