jlec        15/07/28 07:54:07

  Added:                i7z-0.27.2-ncurses.patch
  Log:
  Fix for ncurses[tinfo], bug #553850
  
  (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 
E9402A79B03529A2!)

Revision  Changes    Path
1.1                  app-benchmarks/i7z/files/i7z-0.27.2-ncurses.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/i7z/files/i7z-0.27.2-ncurses.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/i7z/files/i7z-0.27.2-ncurses.patch?rev=1.1&content-type=text/plain

Index: i7z-0.27.2-ncurses.patch
===================================================================
Index: Makefile
===================================================================
--- Makefile    (revision 109)
+++ Makefile    (working copy)
@@ -19,7 +19,7 @@
 
 CC       ?= gcc
 
-LIBS  += -lncurses -lpthread -lrt -lm
+LIBS  += `pkg-config --libs ncurses` -lpthread -lrt -lm
 INCLUDEFLAGS = 
 
 BIN    = i7z
@@ -42,7 +42,7 @@
 
 #http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=644728 for -ltinfo on debian
 static-bin: message $(OBJ)
-       $(CC) $(CFLAGS) $(LDFLAGS) -o $(BIN) $(OBJ) -static-libgcc 
-DNCURSES_STATIC -static -lpthread -lncurses -lrt -lm -ltinfo
+       $(CC) $(CFLAGS) $(LDFLAGS) -o $(BIN) $(OBJ) -static-libgcc 
-DNCURSES_STATIC -static -lpthread `pkg-config --static --libs ncurses` -lrt -lm
 
 # perfmon-bin: message $(OBJ)
 #      $(CC) $(CFLAGS) $(LDFLAGS) -o $(PERFMON-BIN) perfmon-i7z.c 
helper_functions.c $(LIBS)




Reply via email to