From: Marc Kleine-Budde <[email protected]>

powertop fails to link, if ncursesw isn't in the standard library search path.

It fails even if the LDFLAGS have the appropriate -L. We still need to add
LDFLAGS to the linker invocation to make it work with buildsystems like
PTXdist and others, too.

Signed-off-by: Marc Kleine-Budde <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index 68a0cb7..c3550ce 100644
--- a/Makefile
+++ b/Makefile
@@ -20,7 +20,7 @@ OBJS = powertop.o config.o process.o misctips.o bluetooth.o 
display.o suggestion
        
 
 powertop: $(OBJS) Makefile powertop.h
-       $(CC) ${CFLAGS}  $(OBJS) -lncursesw -o powertop
+       $(CC) ${CFLAGS} $(LDFLAGS) $(OBJS) -lncursesw -o powertop
        @(cd po/ && $(MAKE))
 
 powertop.8.gz: powertop.8
-- 
1.6.5

_______________________________________________
Power mailing list
[email protected]
http://www.bughost.org/mailman/listinfo/power

Reply via email to