From: | "Justin Lecher (jlec)" <jlec@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in app-misc/realpath/files: realpath-1.15-build.patch |
Date: | Sun, 28 Nov 2010 15:02:21 |
Message-Id: | 20101128150215.755BD20054@flycatcher.gentoo.org |
1 | jlec 10/11/28 15:02:15 |
2 | |
3 | Added: realpath-1.15-build.patch |
4 | Log: |
5 | Resepct optimization level in *FLAGS, #338407 |
6 | |
7 | (Portage version: 2.2.0_alpha6/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 app-misc/realpath/files/realpath-1.15-build.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/realpath/files/realpath-1.15-build.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/realpath/files/realpath-1.15-build.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: realpath-1.15-build.patch |
16 | =================================================================== |
17 | diff --git a/common.mk b/common.mk |
18 | index 18f539c..142f7e6 100644 |
19 | --- a/common.mk |
20 | +++ b/common.mk |
21 | @@ -34,16 +34,11 @@ webcgidir := $(prefix)/lib/cgi-bin |
22 | applicationsdir := $(prefix)/share/applications |
23 | |
24 | PERL := /usr/bin/perl |
25 | -CC := gcc |
26 | -CFLAGS = -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -Werror -g -DVERSION='"$(VERSION)"' -DPACKAGE='"$(PACKAGE)"' -DLOCALEDIR='"$(nlsdir)"' |
27 | -LDFLAGS := |
28 | +CC ?= gcc |
29 | +CFLAGS += -DVERSION='"$(VERSION)"' -DPACKAGE='"$(PACKAGE)"' -DLOCALEDIR='"$(nlsdir)"' |
30 | +LDFLAGS += |
31 | LIBS := |
32 | |
33 | -ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) |
34 | - CFLAGS += -O0 |
35 | -else |
36 | - CFLAGS += -O2 |
37 | -endif |
38 | |
39 | |
40 | # determine our version number |
41 | @@ -60,9 +55,6 @@ ifndef VERSION |
42 | unexport CDPATH ENV |
43 | |
44 | ifdef DESTDIR |
45 | - ifneq ($(DESTDIR),$(abspath $(DESTDIR))) |
46 | - $(error DESTDIR "$(DESTDIR)" is not an absolute path) |
47 | - endif |
48 | override ddirshort := DESTDIR |
49 | export ddirshort |
50 | endif |