Speaking of which, I also proposed a (rather trivial) patch which enables
cross compilation of a number of OpenVPN plugins (that patch is attached
again) as in the 2.1.4 version that was not possible.
I think you should leave the -O2 as default to CFLAGS.
CFLAGS=-O2
Can be overridden by:
make CFLAGS="-O0"
As evident from the patch I provided, I haven't put the O2 flags there -
I only alter the hard-coded values in that makefile which prevents
cross-compilation. Whether the O2 (or O0) flags should have been there
in the first place is not for me to decide as I do not maintain these
plugins - my patch only ensures that cross-compilation is made possible.