HP3000-L Archives

April 2000, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Bixby <[log in to unmask]>
Reply To:
Mark Bixby <[log in to unmask]>
Date:
Fri, 14 Apr 2000 14:32:53 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (29 lines)
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.

ATOM RSS1 RSS2