Ticket #365: makefiles.diff

File makefiles.diff, 2.8 KB (added by dmik, 8 years ago)
  • src/ld/ld.smak

     
    2626.TDEP   := src/ld/ldstub.def
    2727# link386 -> ilink
    2828#.TLDF  := -nostdlib -los2 -s -Zlinker /align:1 -Zlinker /nosectoraligncode
    29 ifeq ($(EMXOMFLD_TYPE),wlink)
     29ifneq ($(filter wlink WLINK,$(EMXOMFLD_TYPE)),)
    3030.TLDF   := -nostdlib -los2 -lend -s -Zlinker "OPTION ALIGN=4096"
    3131else # ilink:
    3232.TLDF   := -nostdlib -los2 -lend -s -Zlinker /align:1
  • src/lib/alias/alias.smak

     
    4343                else \
    4444                        echo "Aliasing _$$fun1 to _$$fun ..."; \
    4545                        echo ".stabs \"_$${fun1}\",11,0,0,0;.stabs \"_$${fun}\",1,0,0,0;" > $.aliases/_$$fun1.s; \
    46                         if as -o $.aliases/_$$fun1.o $.aliases/_$$fun1.s; then \
     46                        if as -o $.aliases/_$$fun1.o $.aliases/_$$fun1.s; then : \
    4747                        else exit 1; \
    4848                        fi; \
    4949                        fun1=; \
     
    5353        for i in $(ALIAS.FUNCS); do \
    5454                echo "Aliasing _$$i to __std_$$i ..."; \
    5555        echo ".stabs \"_$$i\",11,0,0,0;.stabs \"__std_$$i\",1,0,0,0;" > $.aliases/_$$i.s; \
    56         if test -f $.aliases/_$$i.o || as -o $.aliases/_$$i.o $.aliases/_$$i.s; then \
     56        if test -f $.aliases/_$$i.o || as -o $.aliases/_$$i.o $.aliases/_$$i.s; then : \
    5757                else exit 1; \
    5858                fi \
    5959        done
    6060        for i in $(ALIAS._FUNCS); do \
    6161                echo "Aliasing __$$i to __std_$$i ..."; \
    6262                echo ".stabs \"__$$i\",11,0,0,0;.stabs \"__std_$$i\",1,0,0,0;" > $.aliases/__$$i.s; \
    63                 if test -f $.aliases/__$$i.o || as -o $.aliases/__$$i.o $.aliases/__$$i.s; then \
     63                if test -f $.aliases/__$$i.o || as -o $.aliases/__$$i.o $.aliases/__$$i.s; then : \
    6464                else exit 1; \
    6565                fi \
    6666        done
  • src/lib/libc.smak

     
    207207        $(call DO.EMXEXP,$(filter %.lib,$^),$@)
    208208        sed  -e "/\"___pfn/d" -e "/\"__sys_/d" -e "/\"___sys_/d" -e "/\"___libc_[a-z]/d" -e "/\"__nsyy/d" $@ > $@.tmp
    209209        mv -f $@.tmp $@
    210         krx.exe src/lib/dlllegacy.cmd -e "_DLL_InitTerm" $@ src/lib/libc.def
     210        src/lib/dlllegacy.cmd -e "_DLL_InitTerm" $@ src/lib/libc.def
    211211        mv -f $@ $@.tmp
    212212        cat "src/lib/libstdc++.def" >> $@.tmp
    213213        mv -f $@.tmp $@
  • Makefile.gmk

     
    124124LDFLAGS.prf = -g -Zcrtdll=c_dll -lkProfile -LG:/kTaskMgr/Tree/lib/debug
    125125LDFLAGS.dbg = -g
    126126LDFLAGS.aout = -Zaout
    127 ifeq ($(EMXOMFLD_TYPE),wlink)
     127ifneq ($(filter wlink WLINK,$(EMXOMFLD_TYPE)),)
    128128LDFLAGS.omf = -Zomf
    129129else
    130130LDFLAGS.omf = -Zomf -Zlinker /PM:VIO -Zlinker /LINENUMBERS