Skip to content

Instantly share code, notes, and snippets.

@BrunoReX
Created January 23, 2014 13:41
Show Gist options
  • Save BrunoReX/8578583 to your computer and use it in GitHub Desktop.
Save BrunoReX/8578583 to your computer and use it in GitHub Desktop.
diff --git a/win32/Makefile.msc b/win32/Makefile.msc
index 67b7731..863a0bc 100644
--- a/win32/Makefile.msc
+++ b/win32/Makefile.msc
@@ -22,15 +22,15 @@ SHAREDLIB = zlib1.dll
IMPLIB = zdll.lib
CC = cl
-AS = ml
+AS = ml64
LD = link
AR = lib
RC = rc
-CFLAGS = -nologo -MD -W3 -O2 -Oy- -Zi -Fd"zlib" $(LOC)
+CFLAGS = -nologo -MD -O2 -w -favor:blend -GL -GR- -Y- -MP -EHs-c- $(LOC)
WFLAGS = -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE
-ASFLAGS = -coff -Zi $(LOC)
-LDFLAGS = -nologo -debug -incremental:no -opt:ref
-ARFLAGS = -nologo
+ASFLAGS = $(LOC)
+LDFLAGS = -nologo -incremental:no -opt:ref -opt:icf=5 -ltcg
+ARFLAGS = -nologo -ltcg
RCFLAGS = /dWIN32 /r
OBJS = adler32.obj compress.obj crc32.obj deflate.obj gzclose.obj gzlib.obj gzread.obj \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment