From: | "Mike Frysinger (vapier)" <vapier@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in app-arch/lzip/files: lzip-1.4-build.patch |
Date: | Mon, 02 Feb 2009 19:28:07 |
Message-Id: | E1LU4Sj-0003bk-Ee@stork.gentoo.org |
1 | vapier 09/02/02 19:28:05 |
2 | |
3 | Added: lzip-1.4-build.patch |
4 | Log: |
5 | Initial package by me. |
6 | (Portage version: 2.2_rc23/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 app-arch/lzip/files/lzip-1.4-build.patch |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/lzip/files/lzip-1.4-build.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/lzip/files/lzip-1.4-build.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: lzip-1.4-build.patch |
15 | =================================================================== |
16 | http://lists.gnu.org/archive/html/bug-ed/2008-12/msg00001.html |
17 | |
18 | 2007-04-16 Mike Frysinger <vapier@g.o> |
19 | |
20 | * Do not set CC/CXX/CPPFLAGS/LDFLAGS to "" so that user can |
21 | override if they so choose. |
22 | * Only set CFLAGS/CXXFLAGS if user did not specify any. |
23 | |
24 | --- a/configure |
25 | +++ b/configure |
26 | @@ -25,12 +25,6 @@ |
27 | infodir='$(datadir)/info' |
28 | mandir='$(datadir)/man' |
29 | sysconfdir='$(prefix)/etc' |
30 | -CC= |
31 | -CXX= |
32 | -CPPFLAGS= |
33 | -CFLAGS='-Wall -W -O2' |
34 | -CXXFLAGS='-Wall -W -O2' |
35 | -LDFLAGS= |
36 | |
37 | # Loop over all args |
38 | while [ x"$1" != x ] ; do |
39 | @@ -107,6 +101,14 @@ |
40 | esac |
41 | done |
42 | |
43 | +# Defaults if the user did not select any |
44 | +if [ x"${CFLAGS+set}" != xset ] ; then |
45 | + CFLAGS='-Wall -W -O2' |
46 | +fi |
47 | +if [ x"${CXXFLAGS+set}" != xset ] ; then |
48 | + CXXFLAGS='-Wall -W -O2' |
49 | +fi |
50 | + |
51 | # Find the source files, if location was not specified. |
52 | srcdirtext= |
53 | if [ x"${srcdir}" = x ] ; then |