From ed658b4db61819cc13de28b1bf9b322808a6bf84 Mon Sep 17 00:00:00 2001 From: Matthew Vernon Date: Sat, 25 Jun 2011 13:21:05 +0100 Subject: [PATCH] add LDADD (Ubuntu patch from Andreas Moog) (fix for #631606) --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c52b0ea..3b998b8 100644 --- a/Makefile +++ b/Makefile @@ -89,7 +89,8 @@ DESTMAN1 = $(DESTMAN)/man1 # I use environment variables for these... #CFLAGS = -g CFLAGS = -Wall -Wformat -Werror -Wshadow -W -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wcast-align -Wcast-qual -Wbad-function-cast -Wpointer-arith -g2 -ggdb -DDESTLIB=\"$(DESTLIB)\" -LDFLAGS = -lreadline +LDFLAGS = +LDADD = -lreadline # release directories. Nobody should care about this but me FTPHOME = /mnt/ftp @@ -201,7 +202,7 @@ TOOLSDIST = $(TOOLSRCS) \ ############################################################################### $(PROGRAM): $(PROGOBJS) @echo "Linking $@ ..." - @$(LD) $(LDFLAGS) $(PROGOBJS) -o $@ + @$(LD) $(LDFLAGS) $(PROGOBJS) $(LDADD) -o $@ @echo "done" -- 2.30.2