Purpose: Maintenance
Description: Compilation of C++ APIs failed when ecc compiler was used.
Solution: Quincey and Raymond found out that one needs
-D__GNUC__ flag with ecc v7.1 to build on titan. I added
compilation flags from the config/ia64-linux-gnu file to the
c++/config/ia64-linux-gnu
Platforms tested: hal (Altix), titan
On titan C++ tests passed, but build failed in the
tools/misc directory with the misterious message:
.depend:28: *** multiple target patterns. Stop.
Misc. update:
30 lines
540 B
Plaintext
Executable File
30 lines
540 B
Plaintext
Executable File
|
|
if test -z "$CXX"; then
|
|
CXX=ecc
|
|
CXX_BASENAME=ecc
|
|
fi
|
|
|
|
|
|
case $CXX_BASENAME in
|
|
g++)
|
|
CXXFLAGS="$CXXFLAGS -Wsign-compare" #Only works for some versions
|
|
DEBUG_CXXFLAGS="-g -fverbose-asm"
|
|
DEBUG_CPPFLAGS=
|
|
PROD_CXXFLAGS="-O3 -fomit-frame-pointer"
|
|
PROD_CPPFLAGS=
|
|
PROFILE_CXXFLAGS="-pg"
|
|
PROFILE_CPPFLAGS=
|
|
;;
|
|
|
|
*)
|
|
CXXFLAGS="$CXXFLAGS -std=c99 -w2 -Wall -D__GNUC__"
|
|
DEBUG_CXXFLAGS="-g"
|
|
DEBUG_CPPFLAGS=
|
|
PROD_CXXFLAGS="" #Default optimization O2 is used
|
|
PROD_CPPFLAGS=
|
|
PROFILE_CXXFLAGS="-pg"
|
|
PROFILE_CPPFLAGS=
|
|
;;
|
|
esac
|
|
|