[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
MSVC compiler support [patch 2]: Linking against MCVSRT.DLL
From: |
Michael Goffioul |
Subject: |
MSVC compiler support [patch 2]: Linking against MCVSRT.DLL |
Date: |
Tue, 17 Oct 2006 21:39:41 +0200 |
User-agent: |
Thunderbird 1.5.0.7 (Windows/20060909) |
Link everything with CRT DLL: required if using errno or C file
descriptor across
DLL boundary
Index: configure.in
===================================================================
RCS file: /cvs/octave/configure.in,v
retrieving revision 1.526
diff -p -c -r1.526 configure.in
*** configure.in 13 Oct 2006 18:11:26 -0000 1.526
--- configure.in 17 Oct 2006 11:07:41 -0000
*************** AC_SUBST(DEPEND_EXTRA_SED_PATTERN)
*** 271,276 ****
--- 285,294 ----
ieee_fp_flag=
case "$canonical_host_type" in
+ *-*-msdos)
+ CXXFLAGS="$CXXFLAGS -EHs -MD"
+ CFLAGS="$CFLAGS -MD"
+ ;;
i[[3456789]]86-*-*)
if test "$GCC" = yes; then
OCTAVE_CC_FLAG(-mieee-fp, [
*************** elif $have_f2c; then
*** 684,689 ****
--- 702,712 ----
CONFLIB_ARG="-L. -lconflib"
fi
rm -f conftest*
+ case "$canonical_host_type" in
+ *-*-msdos)
+ CONFLIB_ARG="-MD"
+ ;;
+ esac
AC_CHECK_LIB(f2c, f_open, FLIBS=-lf2c, FLIBS=, $CONFLIB_ARG)
rm -f $oct_conflib
- MSVC compiler support [patch 2]: Linking against MCVSRT.DLL,
Michael Goffioul <=