mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 20:42:59 +01:00
build: fix static dll link for mingw
dll's are no longer dynamically linked to libgcc/libstdc++/libssp
This commit is contained in:
parent
19df238a7b
commit
9ed8979e29
@ -226,6 +226,15 @@ case $host in
|
|||||||
*) AC_MSG_ERROR("Could not determine win32/win64 for installer") ;;
|
*) AC_MSG_ERROR("Could not determine win32/win64 for installer") ;;
|
||||||
esac
|
esac
|
||||||
AC_SUBST(WINDOWS_BITS)
|
AC_SUBST(WINDOWS_BITS)
|
||||||
|
|
||||||
|
dnl libtool insists upon adding -nostdlib and a list of objects/libs to link against.
|
||||||
|
dnl That breaks our ability to build dll's with static libgcc/libstdc++/libssp. Override
|
||||||
|
dnl its command here, with the predeps/postdeps removed, and -static inserted. Postdeps are
|
||||||
|
dnl also overridden to prevent their insertion later.
|
||||||
|
dnl This should only affect dll's.
|
||||||
|
archive_cmds_CXX="\$CC -shared \$libobjs \$deplibs \$compiler_flags -static -o \$output_objdir/\$soname \${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker \$lib"
|
||||||
|
postdeps_CXX=
|
||||||
|
|
||||||
;;
|
;;
|
||||||
*darwin*)
|
*darwin*)
|
||||||
TARGET_OS=darwin
|
TARGET_OS=darwin
|
||||||
|
Loading…
Reference in New Issue
Block a user