Changeset 249 in Main for trunk/vc6.sh


Ignore:
Timestamp:
Oct 4, 2024, 5:59:55 AM (6 weeks ago)
Author:
Nishi
Message:

fix vc6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/vc6.sh

    r222 r249  
    77options="/I../VC6Compat"
    88obj=0
     9win=0
    910source=""
    1011libraries=""
     
    2728        elif [ "$i" = "-shared" ]; then
    2829                options="$options /LD"
     30        elif [ "$i" = "-mwindows" ]; then
     31                win=1
    2932        elif [ "`echo "$i" | grep -Eo "^-D"`" = "-D" ]; then
    3033                options="$options /`echo "$i" | sed "s/^-//g"`"
    3134        elif [ "`echo "$i" | grep -Eo "^-l"`" = "-l" ]; then
     35                if [ "$i" = "-luser32" ]; then
     36                        libraries="$libraries gdi32.lib"
     37                fi
    3238                libraries="$libraries `echo "$i" | sed "s/^-l//g"`.lib"
    3339        elif [ "$dowhat" = "output" ]; then
     
    4955        link="/link /nodefaultlib:libc $libraries"
    5056fi
     57if [ "$obj" = "0" ]; then
     58        if [ "$win" = "1" ]; then
     59                link="$link /SUBSYSTEM:windows"
     60        fi
     61fi
    5162construct="cl /nologo $options $source $link"
    5263echo "Run: $construct"
Note: See TracChangeset for help on using the changeset viewer.