1 --- dmd2/src/phobos/posix.mak.orig 2015-04-25 05:20:30.000000000 +0200
2 +++ dmd2/src/phobos/posix.mak 2015-07-22 15:28:25.126243307 +0200
4 PATHSEP:=$(shell echo "\\")
7 -LINKDL:=$(if $(findstring $(OS),linux),-L-ldl,)
8 +LINKDL:=$(if $(findstring $(OS),linux),-L-ldl -L-lz,)
10 # Set VERSION, where the file is that contains the version string
11 VERSION=../dmd/VERSION
13 # Aggregate all C files over all OSs (this is for the zip file)
14 ALL_C_FILES = $(C_FILES) $(C_EXTRAS)
16 -OBJS = $(addsuffix $(DOTOBJ),$(addprefix $(ROOT)/,$(C_MODULES)))
19 MAKEFILE = $(firstword $(MAKEFILE_LIST))
21 --- dmd2/tools/posix.mak.orig 2015-07-21 22:13:45.308848546 +0200
22 +++ dmd2/tools/posix.mak 2015-07-22 15:29:39.346240185 +0200
24 $(DMD) $(MODEL_FLAG) $(DFLAGS) -c -of$(@).o $(<)
25 # grep for the linker invocation and append -lcurl
26 LINKCMD=$$($(DMD) $(MODEL_FLAG) $(DFLAGS) -v -of$(@) $(@).o 2>/dev/null | grep $(@).o); \
28 + $${LINKCMD} -lcurl -lz
30 $(TOOLS) $(DOC_TOOLS): $(ROOT)/%: %.d
31 $(DMD) $(MODEL_FLAG) $(DFLAGS) -of$(@) $(<)