This has gone wrong. The plugins should be built from the top-level
directory instead (see below how it works for me), with the regular
"make" that also builds openvpn, so the "for plugin in ... make -C
$plugin ..." is no longer needed for these two guys.
"make install" should load the material where it belongs, namely into
libdir/packagename, i. e. /usr[/local]/lib/openvpn/*.so
But I should possibly remove the Makefiles that are no longer needed.
My log excerpt is given below.
So, should I remove the for loop then? Would that be enough?
I don't know if it is clear to you, but I am not building OpenVPN to
install it on a local machine - I am doing cross-compilation build to
end up with rpm, which is for a different architecture to be installed
on a completely different machine (my build machine is x86_64, host
machine is i686).
So, I am not using ./configure, make and then make install in a sense -
I am running "rpmbuild -bb" (which in itself runs configure and make)
with a custom-designed openvpn.spec file - this is also where I apply
your patches.