From: Marc Kleine-Budde Subject: use LDFLAGS during linking powertop fails to link, if ncursesw isn't in the standard library search path. It fails even if the LDFLAGS have the appropriate -L. This patch add LDFLAGS to the linker invocation. Signed-off-by: Marc Kleine-Budde send upstream to power@bughost.org should appear here soon: http://www.bughost.org/pipermail/power/2009-April/thread.html --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: powertop-1.11/Makefile =================================================================== --- powertop-1.11.orig/Makefile +++ powertop-1.11/Makefile @@ -20,7 +20,7 @@ OBJS = powertop.o config.o process.o mis powertop: $(OBJS) Makefile powertop.h - $(CC) ${CFLAGS} $(OBJS) -lncursesw -o powertop + $(CC) ${CFLAGS} $(LDFLAGS) $(OBJS) -lncursesw -o powertop @(cd po/ && $(MAKE)) powertop.1.gz: powertop.1