[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
MSVC compiler support [patch 2]: Linking against MCVSRT.DLL
From: |
John W. Eaton |
Subject: |
MSVC compiler support [patch 2]: Linking against MCVSRT.DLL |
Date: |
Wed, 25 Oct 2006 16:59:54 -0400 |
On 17-Oct-2006, Michael Goffioul wrote:
| 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
It seems bad to set compiler options based on the OS. I see that
config.guess can generate msdosdjgpp, so maybe should be using
msdosmsvc?
I applied this patch, but changed msdos to msdosmsvc.
jwe