diff options
author | Christopher Faylor <me@cgf.cx> | 2012-11-28 01:32:36 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2012-11-28 01:32:36 +0400 |
commit | 66444a6b4036ddd31483c106ad9854e24a3ed76a (patch) | |
tree | 0b0df5ee7e3a9e39277e52e4b864f7ade50fca55 /winsup/utils/Makefile.in | |
parent | 1f3843930e8205144f421c34fb85ed95c61fda53 (diff) |
* Makefile.in (ZLIBS): Common define to force static load.
(MINGW_LDFLAGS): Use static libgcc.
Diffstat (limited to 'winsup/utils/Makefile.in')
-rw-r--r-- | winsup/utils/Makefile.in | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/winsup/utils/Makefile.in b/winsup/utils/Makefile.in index 0a60052ab..484b0770f 100644 --- a/winsup/utils/Makefile.in +++ b/winsup/utils/Makefile.in @@ -67,9 +67,10 @@ MINGW_BINS := ${addsuffix .exe,cygcheck cygwin-console-helper ldh strace} # list will will be compiled in Cygwin mode implicitly, so there is no # need for a CYGWIN_OBJS. MINGW_OBJS := bloda.o cygcheck.o dump_setup.o ldh.o path.o strace.o -MINGW_LDFLAGS:=-L${WINDOWS_LIBDIR} +MINGW_LDFLAGS:=-L${WINDOWS_LIBDIR} -static-libgcc CYGCHECK_OBJS:=cygcheck.o bloda.o path.o dump_setup.o +ZLIB:=-Wl,-dn,-lz,-dy .PHONY: all all: @@ -85,7 +86,7 @@ mount.exe: path-mount.o # Provide any necessary per-target variable overrides. -cygcheck.exe: MINGW_LDFLAGS += -lpsapi -lntdll --static -lz +cygcheck.exe: MINGW_LDFLAGS += ${ZLIB} -lpsapi -lntdll cygcheck.exe: ${CYGCHECK_OBJS} cygpath.o: CXXFLAGS += -fno-threadsafe-statics @@ -107,7 +108,7 @@ CYGWIN_BINS += dumper.exe dumper.o module_info.o parse_pe.o: CXXFLAGS += -I$(top_srcdir)/include dumper.o parse_pe.o: dumper.h dumper.exe: module_info.o parse_pe.o -dumper.exe: CYGWIN_LDFLAGS += -lbfd -lintl -liconv -liberty --static -lz +dumper.exe: CYGWIN_LDFLAGS += -lbfd -lintl -liconv -liberty ${ZLIB} else all: warn_dumper endif |