Changeset 2262


Ignore:
Timestamp:
Jun 14, 2011 4:34:49 PM (8 years ago)
Author:
stefan
Message:

tweaks for building under mingw, one for gfortran, once for cl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/coin.m4

    r2261 r2262  
    34753475
    34763476    # set projcflags and projlibs variables by running $pcfilemod
     3477    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
    34773478    projcflags=
    34783479    projlibs=
     3480    IFS="$save_IFS"
    34793481    eval `sh -c "$pcfilemod"`
     3482    IFS=":"
    34803483
    34813484    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     
    35203523
    35213524    # set projcflags and projlibs variables by running $pcfilemod
     3525    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
    35223526    projcflags=
    35233527    projlibs=
     3528    IFS="$save_IFS"
    35243529    eval `sh -c "$pcfilemod"`
     3530    IFS=":"
    35253531
    35263532    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     
    35483554  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
    35493555  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
    3550   #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
     3556  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`, and
    35513557  #    everything of the form "-lname" by "libname.lib"
    35523558  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
    35533559  then
    35543560    m4_toupper($1_LIBS)=`echo " $m4_toupper($1_LIBS) " | [sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g']`
    3555     m4_toupper($1_LIBS_INSTALLED)=`echo " $m4_toupper($1_LIBS_INSTALLED)" | [sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -L\([^ ]*\)/ \/libpath:\`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g']`
     3561    m4_toupper($1_LIBS_INSTALLED)=`echo " $m4_toupper($1_LIBS_INSTALLED)" | [sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g']`
    35563562  fi
    35573563
Note: See TracChangeset for help on using the changeset viewer.