diff -uNr dahdi-tools-2.1.0.2.ORIG/Makefile dahdi-tools-2.1.0.2/Makefile --- dahdi-tools-2.1.0.2.ORIG/Makefile 2009-03-10 16:48:48.000000000 +0000 +++ dahdi-tools-2.1.0.2/Makefile 2009-03-10 16:53:46.000000000 +0000 @@ -156,12 +156,12 @@ $(CC) $(CFLAGS) $(MAKE_DEPS) -c -o $@ $< %: %.o - $(CC) $(LDFLAGS) -o $@ $^ + $(CC) $(LDFLAGS) $^ $(LIBS) -o $@ prereq: config.status dahdi_tool: CFLAGS+=$(NEWT_INCLUDE) -dahdi_tool: LDFLAGS+=$(NEWT_LIB) +dahdi_tool: LIBS+=$(NEWT_LIB) dahdi_speed: CFLAGS+=-O0 @@ -173,11 +173,11 @@ $(CC) $(CFLAGS) -shared -Wl,-soname,$(LTZ_SO).$(LTZ_SO_MAJOR_VER).$(LTZ_SO_MINOR_VER) -o $@ $^ -lm dahdi_cfg: $(LTZ_A) -dahdi_cfg: LDFLAGS+=-lm +dahdi_cfg: LIBS+=-lm fxstest: $(LTZ_SO) -fxstest: LDFLAGS+=-lm -fxotune: LDFLAGS+=-lm +fxstest: LIBS+=-lm +fxotune: LIBS+=-lm tonezones.txt: zonedata.c perl -ne 'next unless (/\.(country|description) = *"([^"]*)/); \