1 do not use static linking on Cygwin
2 --- digitemp-3.6.0.orig/Makefile 2008-08-28 23:37:00.000000000 +0200
3 +++ digitemp-3.6.0/Makefile 2011-01-14 21:37:33.000000000 +0100
9 -CFLAGS = -I./src -I./userial -O2 -Wall # -g
11 +CFLAGS ?= -I./src -I./userial
14 OBJS = src/digitemp.o src/device_name.o src/ds2438.o
15 HDRS = src/digitemp.h src/device_name.h
16 @@ -45,7 +46,7 @@ DS2490OBJS = userial/ds2490/ownet.o user
17 # If you add a new OSTYPE here please email it to me so that I can add
18 # it to the distribution in the next release
19 # -----------------------------------------------------------------------
20 -SYSTYPE := $(shell uname -s)
23 ifeq ($(SYSTYPE), Linux)
25 @@ -57,7 +58,6 @@ endif
27 ifneq (, $(findstring CYGWIN,$(SYSTYPE)))
29 - LIBS += -static -static-libgcc
32 ifeq ($(SYSTYPE), SunOS)
33 @@ -116,13 +116,13 @@ all: help
35 # Build the Linux executable
36 ds9097: $(OBJS) $(HDRS) $(ONEWIREOBJS) $(ONEWIREHDRS) $(DS9097OBJS)
37 - $(CC) $(OBJS) $(ONEWIREOBJS) $(DS9097OBJS) -o digitemp_DS9097 $(LIBS)
38 + $(CC) $(LDFLAGS) $(OBJS) $(ONEWIREOBJS) $(DS9097OBJS) -o digitemp_DS9097 $(LIBS)
40 ds9097u: $(OBJS) $(HDRS) $(ONEWIREOBJS) $(ONEWIREHDRS) $(DS9097UOBJS)
41 - $(CC) $(OBJS) $(ONEWIREOBJS) $(DS9097UOBJS) -o digitemp_DS9097U $(LIBS)
42 + $(CC) $(LDFLAGS) $(OBJS) $(ONEWIREOBJS) $(DS9097UOBJS) -o digitemp_DS9097U $(LIBS)
44 ds2490: $(OBJS) $(HDRS) $(ONEWIREOBJS) $(ONEWIREHDRS) $(DS2490OBJS)
45 - $(CC) $(OBJS) $(ONEWIREOBJS) $(DS2490OBJS) -o digitemp_DS2490 $(LIBS)
46 + $(CC) $(LDFLAGS) $(OBJS) $(ONEWIREOBJS) $(DS2490OBJS) -o digitemp_DS2490 $(LIBS)
49 # Clean up the object files and the sub-directory for distributions