Louise Hookway wrote:
...snip...
> $ make
> c89 -c -O2 -DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE alloc.c
> c89: unrecognized option: 2
The gcc optimization parameter of -O2 is not recognized by HP C/iX, which is
expecting simply -O.
...snip...
> I have gone into src/Configuration to look at my $CFLAGS and the options are
> as follows:
>
> CFLAGS="$CFLAGS -DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE
>
> I cannot tell where the " -O2 " in the above error is coming from. I do not
> believe it is being set in the CFLAGS, but cannot be sure, since I don't know
> the code.
CFLAGS is being set to some default values way earlier in the configure script.
The MPE configure line is appending MPE-specific values to the existing CFLAGS
contents. I would just rewrite that line as:
CFLAGS="-O -DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE"
- Mark B.