File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -226,6 +226,15 @@ case $host in
226226 *) AC_MSG_ERROR ( "Could not determine win32/win64 for installer" ) ;;
227227 esac
228228 AC_SUBST ( WINDOWS_BITS )
229+
230+ dnl libtool insists upon adding -nostdlib and a list of objects/libs to link against.
231+ dnl That breaks our ability to build dll's with static libgcc/libstdc++/libssp. Override
232+ dnl its command here, with the predeps/postdeps removed, and -static inserted. Postdeps are
233+ dnl also overridden to prevent their insertion later.
234+ dnl This should only affect dll's.
235+ archive_cmds_CXX="\$CC -shared \$libobjs \$deplibs \$compiler_flags -static -o \$output_objdir/\$soname \${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker \$lib"
236+ postdeps_CXX=
237+
229238 ;;
230239 *darwin*)
231240 TARGET_OS=darwin
You can’t perform that action at this time.
0 commit comments