>> I would like you to try to do so using libtool... >> >> Just replace: >> --- >> sbin_PROGRAMS = openvpn >> openvpn_SOURCES = .... >> --- >> with: >> --- >> lib_LTLIBRARIES = openvpn.la >> openvpn_la_SOURCES = ... >> openvpn_la_LDFLAGS = \ >> -module -shared -avoid-version -no-undefined >> --- >> >> And add -Dmain=openvpn_main to AM_CFLAGS. >> >> Alon. > You should also change: > --- > openvpn_LDADD = ... > --- > to: > --- > openvpn_la_LDADD = ... > --- I can try this sometime later but for the moment I happy with building the openvpn with the android ndk build system as there a other things that I prefer to tweaking the build system.
Arne