aboutsummaryrefslogtreecommitdiff
path: root/win32/Makefile.gcc
diff options
context:
space:
mode:
Diffstat (limited to 'win32/Makefile.gcc')
-rw-r--r--win32/Makefile.gcc10
1 files changed, 5 insertions, 5 deletions
diff --git a/win32/Makefile.gcc b/win32/Makefile.gcc
index 081e391eb299..d1cdb9a18db6 100644
--- a/win32/Makefile.gcc
+++ b/win32/Makefile.gcc
@@ -4,7 +4,7 @@
# Last updated: Mar 2012.
# Tested under Cygwin and MinGW.
-# Copyright (C) 1995-2003 Jean-loup Gailly.
+# Copyright (C) 1995-2026 Jean-loup Gailly.
# For conditions of distribution and use, see copyright notice in zlib.h
# To compile, or to compile and test, type from the top level zlib directory:
@@ -50,7 +50,7 @@ AR = $(PREFIX)ar
ARFLAGS = rcs
RC = $(PREFIX)windres
-RCFLAGS = --define GCC_WINDRES
+RCFLAGS =
STRIP = $(PREFIX)strip
@@ -76,10 +76,10 @@ testdll: example_d.exe minigzip_d.exe
./example_d
echo hello world | ./minigzip_d | ./minigzip_d -d
-.c.o:
+%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
-.S.o:
+%.o: %.S
$(AS) $(ASFLAGS) -c -o $@ $<
$(STATICLIB): $(OBJS) $(OBJA)
@@ -88,7 +88,7 @@ $(STATICLIB): $(OBJS) $(OBJA)
$(IMPLIB): $(SHAREDLIB)
$(SHAREDLIB): win32/zlib.def $(OBJS) $(OBJA) zlibrc.o
- $(CC) -shared -Wl,--out-implib,$(IMPLIB) $(LDFLAGS) \
+ $(CC) -shared -static-libgcc -Wl,--out-implib,$(IMPLIB) $(LDFLAGS) \
-o $@ win32/zlib.def $(OBJS) $(OBJA) zlibrc.o
$(STRIP) $@