It seems that there is a subtle bug in fontforge's configure:

CFLAGS_NOOPT=`echo $CFLAGS | sed -e s/-O2// | sed -e s/-O//`

This is supposed to produce CFLAGS with all optimization options stripped.
Let's leave alone the fact that there could be -O1 flag or -O3 or even
-funroll-all-loops.
Still, 'g' option is missing from the sed commands.
Say, CFLAGS contain "-O2 ... -O2", then the first sed command would strip only 
the
first occurrence of -O2 and the second command would leave a dangling '2'.
This is what I am hitting here.

Proposal:
CFLAGS_NOOPT=`echo $CFLAGS | sed -e s/-O[0-9]*//g`

What do you think?

-- 
Andriy Gapon
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to