Boost logo

Boost-Build :

Subject: [Boost-build] Problem with the Sun toolset and C compiles
From: Edward Diener (eldiener_at_[hidden])
Date: 2013-12-29 01:45:42


The problem I have uncovered is if the Sun toolset is being used and one
is compiling C, as opposed to C++, files with it. In this case the
toolset correctly invokes the Sun compiler using 'cc' rather than 'CC'.
Unfortunately when it invokes the 'cc' compiler it still passes the
-KPIC option to the compiler and this produces an error from the
compiler of:

cc: error: unrecognized command line option ˜-KPIC™

and the compilation fails.

Could this please be corrected in the Boost Build toolset for this
compiler so that invoking the C compiler does not pass this option ? If
necessary I will be glad to create a Trac item for this but I wanted to
bring it to the attention of Boost Build here.


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk