Patch against Make.conf.OSF1
* use cxx as the default compiler
* define CC to include a preprocessor define (-D__osf1__), since the icecpp makefile doesn't pass CFLAGS. Fixes:
Code:
make[2]: Entering directory `src/icecpp'
cc -I. -c cccp.c
cc: Error: config.h, line 80: #error "unsupported operating system or platform" (errormessage)
# error "unsupported operating system or platform"
----^
* compiler flags suppress certain warning messages. These are:
Code:
cxx: Warning: lex.yy.c, line 1553: statement is unreachable (D:codeunreachable)
if ( ! yy_did_buffer_switch_on_eof )
----------------------------------------^
==
cxx: Warning: PythonUtil.cpp, line 1245: statement either is unreachable or
causes unreachable code (D:codcauunr)
_out << "'" << value << "'";
----------------^
==
cxx: Warning: Grammar.tab.c, line 1342: code can never be executed at label
"yyerrorlab". (D:labelnotreach)
yyerrorlab:
^
* use -D__USE_STD_IOSTREAM -- from the man page of cxx:
Code:
-D__[NO_]USE_STD_IOSTREAM
Use or don't use the standard iostreams. If -D__USE_STD_IOSTREAM is
specified, this forces the inclusion of the ANSI standard version of
the iostream header file. This is the default in strict_ansi and
strict_ansi_errors mode of the compiler. Otherwise the pre-standard
AT&T-compatible version of iostreams is used.
* ICEUTIL_OS_LIBS link with -lrt which enables usage of nanosleep()