Ticket #365: makefiles.diff
File makefiles.diff, 2.8 KB (added by , 8 years ago) |
---|
-
src/ld/ld.smak
26 26 .TDEP := src/ld/ldstub.def 27 27 # link386 -> ilink 28 28 #.TLDF := -nostdlib -los2 -s -Zlinker /align:1 -Zlinker /nosectoraligncode 29 if eq ($(EMXOMFLD_TYPE),wlink)29 ifneq ($(filter wlink WLINK,$(EMXOMFLD_TYPE)),) 30 30 .TLDF := -nostdlib -los2 -lend -s -Zlinker "OPTION ALIGN=4096" 31 31 else # ilink: 32 32 .TLDF := -nostdlib -los2 -lend -s -Zlinker /align:1 -
src/lib/alias/alias.smak
43 43 else \ 44 44 echo "Aliasing _$$fun1 to _$$fun ..."; \ 45 45 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 : \ 47 47 else exit 1; \ 48 48 fi; \ 49 49 fun1=; \ … … 53 53 for i in $(ALIAS.FUNCS); do \ 54 54 echo "Aliasing _$$i to __std_$$i ..."; \ 55 55 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 : \ 57 57 else exit 1; \ 58 58 fi \ 59 59 done 60 60 for i in $(ALIAS._FUNCS); do \ 61 61 echo "Aliasing __$$i to __std_$$i ..."; \ 62 62 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 : \ 64 64 else exit 1; \ 65 65 fi \ 66 66 done -
src/lib/libc.smak
207 207 $(call DO.EMXEXP,$(filter %.lib,$^),$@) 208 208 sed -e "/\"___pfn/d" -e "/\"__sys_/d" -e "/\"___sys_/d" -e "/\"___libc_[a-z]/d" -e "/\"__nsyy/d" $@ > $@.tmp 209 209 mv -f $@.tmp $@ 210 krx.exesrc/lib/dlllegacy.cmd -e "_DLL_InitTerm" $@ src/lib/libc.def210 src/lib/dlllegacy.cmd -e "_DLL_InitTerm" $@ src/lib/libc.def 211 211 mv -f $@ $@.tmp 212 212 cat "src/lib/libstdc++.def" >> $@.tmp 213 213 mv -f $@.tmp $@ -
Makefile.gmk
124 124 LDFLAGS.prf = -g -Zcrtdll=c_dll -lkProfile -LG:/kTaskMgr/Tree/lib/debug 125 125 LDFLAGS.dbg = -g 126 126 LDFLAGS.aout = -Zaout 127 if eq ($(EMXOMFLD_TYPE),wlink)127 ifneq ($(filter wlink WLINK,$(EMXOMFLD_TYPE)),) 128 128 LDFLAGS.omf = -Zomf 129 129 else 130 130 LDFLAGS.omf = -Zomf -Zlinker /PM:VIO -Zlinker /LINENUMBERS