From: "Justin Lecher (jlec)" <jlec@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in app-benchmarks/i7z/files: 0.26-gentoo.patch
Date: Sat, 29 Jan 2011 15:01:20 +0000 (UTC) [thread overview]
Message-ID: <20110129150120.4A27F20057@flycatcher.gentoo.org> (raw)
jlec 11/01/29 15:01:20
Added: 0.26-gentoo.patch
Log:
New package, written by me, fixes #324477
(Portage version: 2.2.0_alpha19/cvs/Linux x86_64)
Revision Changes Path
1.1 app-benchmarks/i7z/files/0.26-gentoo.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/i7z/files/0.26-gentoo.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/i7z/files/0.26-gentoo.patch?rev=1.1&content-type=text/plain
Index: 0.26-gentoo.patch
===================================================================
diff --git a/Makefile b/Makefile
index fc4d262..e2347bf 100644
--- a/Makefile
+++ b/Makefile
@@ -17,18 +17,18 @@
#makefile updated from patch by anestling
-CFLAGSANY = -g -O0 -fomit-frame-pointer -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DBUILD_MAIN -Wall
+CFLAGS += -O0 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DBUILD_MAIN -Wall
LBITS := $(shell getconf LONG_BIT)
ifeq ($(LBITS),64)
- CFLAGS = $(CFLAGSANY) -Dx64_BIT
+ CFLAGS += -Dx64_BIT
else
- CFLAGS = $(CFLAGSANY) -Dx86
+ CFLAGS += -Dx86
endif
-CC = gcc
+CC ?= gcc
-LDFLAGS = -lncurses -lpthread
+LIBS = -lncurses -lpthread
INCLUDEFLAGS =
OBJS = helper_functions
@@ -36,15 +36,15 @@ OBJS = helper_functions
BIN = i7z
SRC = i7z.c helper_functions.c i7z_Single_Socket.c i7z_Dual_Socket.c
-sbindir = /usr/sbin
+sbindir = $(DESTDIR)/usr/sbin
-all: clean message bin
+all: clean bin
message:
@echo "If the compilation complains about not finding ncurses.h, install ncurses (libncurses5-dev on ubuntu/debian)"
bin:
- $(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDEFLAGS) $(SRC) -o $(BIN)
+ $(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDEFLAGS) $(SRC) -o $(BIN) $(LIBS)
clean:
rm -f *.o $(BIN)
@@ -52,6 +52,6 @@ clean:
distclean: clean
rm -f *~ \#*
-install: all
- install -m 755 $(BIN) $(sbindir)
+install:
+ install -D -m 755 $(BIN) $(sbindir)/$(BIN)
reply other threads:[~2011-01-29 15:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110129150120.4A27F20057@flycatcher.gentoo.org \
--to=jlec@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox