blob: 44c92f0076d318909fe66353e20e178f1355830d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
From: Marc Kleine-Budde <mkl@pengutronix.de>
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 <mkl@pengutronix.de>
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
|