Changeset 3981


Ignore:
Timestamp:
Sep 3, 2019 10:40:06 AM (6 weeks ago)
Author:
stefan
Message:

do not use -M[TD]d

  • raises an assert within MSVC runtime library when running ASL code
  • use -M[TD] instead
Location:
ThirdParty/ASL/branches/autotools-update
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ThirdParty/ASL/branches/autotools-update/configure

    r3980 r3981  
    1226612266
    1226712267case "$CC" in
    12268   *cl ) cc_is_cl=true ;;
    12269   * ) cc_is_cl=false ;;
     12268  *cl )
     12269    cc_is_cl=true
     12270    case "$CFLAGS" in *-MDd* | *-MTd* )
     12271      CFLAGS=`echo $CFLAGS | sed -e 's/-MDd/-MD/g' -e 's/-MTd/-MT/g'`
     12272      { $as_echo "$as_me:${as_lineno-$LINENO}: ASL libraries linked with debug MSVC runtime libs do not work. Replaced -MDd and -MTd by -MD and -MT in CFLAGS, resp." >&5
     12273$as_echo "$as_me: ASL libraries linked with debug MSVC runtime libs do not work. Replaced -MDd and -MTd by -MD and -MT in CFLAGS, resp." >&6;}
     12274      ;;
     12275    esac
     12276    ;;
     12277  * )
     12278    cc_is_cl=false
     12279    ;;
    1227012280esac
    1227112281 if $cc_is_cl; then
  • ThirdParty/ASL/branches/autotools-update/configure.ac

    r3980 r3981  
    7272
    7373case "$CC" in
    74   *cl ) cc_is_cl=true ;;
    75   * ) cc_is_cl=false ;;
     74  *cl )
     75    cc_is_cl=true
     76    case "$CFLAGS" in *-MDd* | *-MTd* )
     77      CFLAGS=`echo $CFLAGS | sed -e 's/-MDd/-MD/g' -e 's/-MTd/-MT/g'`
     78      AC_MSG_NOTICE([ASL libraries linked with debug MSVC runtime libs do not work. Replaced -MDd and -MTd by -MD and -MT in CFLAGS, resp.])
     79      ;;
     80    esac
     81    ;;
     82  * )
     83    cc_is_cl=false
     84    ;;
    7685esac
    7786AM_CONDITIONAL([CC_IS_CL], [$cc_is_cl])
Note: See TracChangeset for help on using the changeset viewer.