forgot to merge this a while ago. whoops. Just did so.
Auke
Marc Kleine-Budde wrote:
> 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
>
>
>
>
_______________________________________________
Power mailing list
[email protected]
http://www.bughost.org/mailman/listinfo/power