irqbalance/irqbalance-fix-Makefile

22 lines
745 B
Plaintext

---
Makefile | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
--- irqbalance-0.55.orig/Makefile
+++ irqbalance-0.55/Makefile
@@ -1,11 +1,12 @@
-CFLAGS+=-g -Os -D_FORTIFY_SOURCE=2 -Wall -W `pkg-config --cflags glib-2.0`
+override CFLAGS+=-g -Os -D_FORTIFY_SOURCE=2 -Wall -W `pkg-config --cflags glib-2.0`
+override LDFLAGS += $(shell pkg-config --libs glib-2.0)
all: irqbalance
LIBS=bitmap.o irqbalance.o cputree.o procinterrupts.o irqlist.o placement.o activate.o network.o powermode.o numa.o classify.o
irqbalance: .depend $(LIBS)
- gcc -g -O2 -D_FORTIFY_SOURCE=2 -Wall `pkg-config --libs glib-2.0` $(LIBS) -o irqbalance
+ gcc $(CFLAGS) $(LDFLAGS) $(LIBS) -o irqbalance
clean:
rm -f irqbalance *~ *.o .depend