Build the library as a module on Windows

This commit is contained in:
Frank Denis 2013-02-04 17:16:46 -08:00
parent 49461b5e66
commit 6d3afb32de
2 changed files with 4 additions and 1 deletions

View File

@ -61,6 +61,7 @@ AX_CHECK_COMPILE_FLAG([-fno-strict-overflow], [CFLAGS="$CFLAGS -fno-strict-overf
case $host_os in case $host_os in
cygwin* | mingw* | pw32* | cegcc*) cygwin* | mingw* | pw32* | cegcc*)
LIBTOOL_EXTRA_FLAGS=-module
AX_CHECK_LINK_FLAG([-Wl,--dynamicbase], [LDFLAGS="$LDFLAGS -Wl,--dynamicbase"]) AX_CHECK_LINK_FLAG([-Wl,--dynamicbase], [LDFLAGS="$LDFLAGS -Wl,--dynamicbase"])
AX_CHECK_LINK_FLAG([-Wl,--nxcompat], [LDFLAGS="$LDFLAGS -Wl,--nxcompat"]) AX_CHECK_LINK_FLAG([-Wl,--nxcompat], [LDFLAGS="$LDFLAGS -Wl,--nxcompat"])
AX_CHECK_COMPILE_FLAG([-fstack-protector-all], [ AX_CHECK_COMPILE_FLAG([-fstack-protector-all], [
@ -207,6 +208,7 @@ AC_ARG_WITH(safecode,
AC_SUBST([MAINT]) AC_SUBST([MAINT])
AC_SUBST([SODIUM_PATH]) AC_SUBST([SODIUM_PATH])
AC_SUBST([LIBTOOL_EXTRA_FLAGS])
dnl Libtool. dnl Libtool.

View File

@ -84,7 +84,8 @@ libsodium_la_LDFLAGS = \
$(AM_LDFLAGS) \ $(AM_LDFLAGS) \
-export-dynamic \ -export-dynamic \
-version-info $(SODIUM_LIBRARY_VERSION) \ -version-info $(SODIUM_LIBRARY_VERSION) \
-no-undefined -no-undefined \
$(LIBTOOL_EXTRA_FLAGS)
libsodium_la_CPPFLAGS = \ libsodium_la_CPPFLAGS = \
$(LTDLINCL) \ $(LTDLINCL) \