HI,

>
> I have almost finished integrating tapctl.exe and openvpnmsica.dll
> utilities
> for MSI packaging into the OpenVPN/openvpn repo. However, I am totally new
> with MinGW and would need some help.
>
> How do you tell the OpenVPN's build process to create a DLL file, not an
> EXE?
>

As with gcc mingw takes -shared option to create dll. But I guess you want
to use autotools. If so:

In configure.ac add "LT_INIT([win32-dll])" and a barebones Makefile.am
would be

lib_LTLIBRARIES = libtest.la
libtest_la_LDFLAGS = -no-undefined -avoid-version
libtest_la_SOURCES = test.c
libtest_la_CFLAGS = --std=c99

Run autoreconf -iv; ./configure; make and will produce libtest.dll in
./.libs/

I believe all symbols are exported by default. Adding "-export-symbols
symbol-file"
may be an easy way to customize it.

Selva
_______________________________________________
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to