Hello,

powertop fails to link, if ncursesw isn't in the standard library search
path. It fails even if the LDFLAGS have the appropriate -L. The attached
patch fixes this:

cheers, Marc

P.S.: have you ever thought about autotoolization of powertop? Would you
accept patches to do so?

--- patch follows ---

From: Marc Kleine-Budde <[email protected]>
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 <[email protected]>

---
 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



-- 
Pengutronix e.K.                         | Marc Kleine-Budde           |
Linux Solutions for Science and Industry | Phone: +49-231-2826-924     |
Vertretung West/Dortmund                 | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686         | http://www.pengutronix.de   |

Attachment: signature.asc
Description: OpenPGP digital signature

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

Reply via email to