Changeset 1672


Ignore:
Timestamp:
Aug 17, 2010 9:07:56 PM (11 years ago)
Author:
stefan
Message:

fix order of libraries in fallback; get also cflags if they do not include -I

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/coin.m4

    r1663 r1672  
    40204020    if test "x$pcfile" != x ; then
    40214021      # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags
    4022       projcflags=[`sed -n -e 's/Cflags://' -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/gp' "$pcfile"`]
     4022      projcflags=`sed -n -e 's/Cflags://p' "$pcfile"`
     4023      projcflags=[`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`]
    40234024      m4_toupper($1_CFLAGS)="$projcflags $m4_toupper($1_CFLAGS)"
    40244025     
     
    40354036        projlibs=`sed -n -e 's/Libs://p' "$pcfile"`
    40364037      fi
    4037       m4_toupper($1_LIBS)="$projlibs $m4_toupper($1_LIBS)"
     4038      m4_toupper($1_LIBS)="$m4_toupper($1_LIBS) $projlibs"
    40384039     
    40394040      # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one)
Note: See TracChangeset for help on using the changeset viewer.