On Sun, Sep 23, 2007 at 12:15:25PM +0200, Giovanni Bechis wrote: > > I just noticed yet another other small problem: it doesn't honour > > CFLAGS (-O2 -Wall always appended), and in icc2ps, just -O3 is used > > and LDFLAGS is ignored. > > > Port fixed and available at: > http://bigio.snb.it/openbsd/foo2zjs.tgz
Ehm... I may have caused some confusion by mentioning LDFLAGS.
You can go with only the CFLAGS declarations removed and without
adding LDFLAGS too the linking command lines. This doesn't *honor*
LDFLAGS, but id "fixes" things like DEBUG=-g.
Or, to do it clean, *replace* CFLAGS by LDFLAGS (except for
icc2ps/Makefile, of course, which compiles an links with one command)
and add LDFLAGS='${LDFLAGS}' to MAKE_ENV. Just adding LDFLAGS doesn't
have any effect without the latter. I've attached a version of
this approach.
BTW: is there any reason we don't add LDFLAGS to MAKE_ENV by default?
Ciao,
Kili
ps: sorry if I still sound confused, but after several hours of work on
the ghostscript port, it's impossible to not be confused ;-)
foo2zjs.tgz
Description: application/tar-gz
