Created attachment 1907[details]
LDFLAGS vs LIBS
libraries do not belong to LDFLAGS.
Patch creates separate *LIBS variables for libraries, leaving LDFLAGS for real flags, like -shared or --as-needed. Also CFLAGS are used when linking: -m32/-m64 belongs to CFLAGS, not LDFLAGS; linker additionally optimizes output file when -O* is in flags.
Created attachment 1906 [details] x86_64_assembler typo x86_64_assembler should use separate object file for dedicated server
Created attachment 1907 [details] LDFLAGS vs LIBS libraries do not belong to LDFLAGS. Patch creates separate *LIBS variables for libraries, leaving LDFLAGS for real flags, like -shared or --as-needed. Also CFLAGS are used when linking: -m32/-m64 belongs to CFLAGS, not LDFLAGS; linker additionally optimizes output file when -O* is in flags.
Created attachment 1917 [details] migw32 shell problems migw32 shell has problems with empty "for" loops, problem appears when LDFLAGS is empty