Boost logo

Boost-Build :

From: Christopher Currie (Christopher_at_[hidden])
Date: 2003-07-22 11:30:06


Rene Rivera wrote:
> By the way, is there a compiler option for turning off those "String literal
> converted..." warnings?

Sorry for the late response on this topic, I was on vacation for two
weeks. I've had much better results using the Solaris C compiler ('cc')
as opposed to the C++ compiler, since these are .c files and expect some
of the more permissive aspects of C. In fact, the version of bjam
packaged with BB2M5 won't build at all using my version of CC (5.4 Patch
111715-06), because of missing prototypes.

Therefore, I propose the following patches to change the default bjam
compiler on Solaris from C++ compiler to the C compiler.

Christopher

Index: build.sh
===================================================================
RCS file: /cvsroot/boost/boost/tools/build/jam_src/build.sh,v
retrieving revision 1.15
diff -u -r1.15 build.sh
--- build.sh 11 Jul 2003 06:48:52 -0000 1.15
+++ build.sh 22 Jul 2003 16:27:48 -0000
@@ -80,7 +80,7 @@
elif test_path bc++ ; then BOOST_JAM_TOOLSET=kylix
elif test_path aCC ; then BOOST_JAM_TOOLSET=acc
elif test_uname HP-UX ; then BOOST_JAM_TOOLSET=acc
- elif test -r /opt/SUNWspro/bin/CC ; then
+ elif test -r /opt/SUNWspro/bin/cc ; then
BOOST_JAM_TOOLSET=sunpro
BOOST_JAM_TOOLSET_ROOT=/opt/SUNWspro/
# Test for "cc" as the default fallback.
@@ -149,13 +149,13 @@
;;

sunpro)
- if test -r /opt/SUNWspro/bin/CC ; then
+ if test -r /opt/SUNWspro/bin/cc ; then
BOOST_JAM_TOOLSET_ROOT=/opt/SUNWspro/
fi
- if test -r $BOOST_JAM_TOOLSET_ROOTbin/CC ; then
+ if test -r $BOOST_JAM_TOOLSET_ROOTbin/cc ; then
export PATH=$BOOST_JAM_TOOLSET_ROOTbin:$PATH
fi
- BOOST_JAM_CC=CC
+ BOOST_JAM_CC=cc
;;

tru64cxx)
Index: build.jam
===================================================================
RCS file: /cvsroot/boost/boost/tools/build/jam_src/build.jam,v
retrieving revision 1.38
diff -u -r1.38 build.jam
--- build.jam 15 Jul 2003 16:07:11 -0000 1.38
+++ build.jam 22 Jul 2003 16:27:48 -0000
@@ -141,10 +141,10 @@
[ opt --debug : /MLd /DEBUG /Z7 /Od /Ob0 ]
: kernel32.lib ;
## Sun Workshop 6 C++
-toolset sunpro CC : "-o " : -D
+toolset sunpro cc : "-o " : -D
:
- [ opt --release : -s -fast -O4 ]
- [ opt --debug : -g +d ] ;
+ [ opt --release : -s -fast -xO4 ]
+ [ opt --debug : -g ] ;
## Compaq Alpha CXX
toolset tru64cxx cc : "-o " : -D
:

 


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