1 |
commit: 449cec71c892a45e0c43aa1019d5e08b6337d059 |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 17 23:56:48 2015 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 18 00:00:05 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=449cec71 |
7 |
|
8 |
sys-block/open-iscsi: fix handling of user CPPFLAGS |
9 |
|
10 |
sys-block/open-iscsi/open-iscsi-2.0.873-r1.ebuild | 8 +++++--- |
11 |
1 file changed, 5 insertions(+), 3 deletions(-) |
12 |
|
13 |
diff --git a/sys-block/open-iscsi/open-iscsi-2.0.873-r1.ebuild b/sys-block/open-iscsi/open-iscsi-2.0.873-r1.ebuild |
14 |
index 4392860..05d9790 100644 |
15 |
--- a/sys-block/open-iscsi/open-iscsi-2.0.873-r1.ebuild |
16 |
+++ b/sys-block/open-iscsi/open-iscsi-2.0.873-r1.ebuild |
17 |
@@ -52,6 +52,8 @@ src_prepare() { |
18 |
} |
19 |
|
20 |
src_configure() { |
21 |
+ use debug && append-cppflags -DDEBUG_TCP -DDEBUG_SCSI |
22 |
+ |
23 |
cd utils/open-isns || die |
24 |
|
25 |
# SSL (--with-security) is broken |
26 |
@@ -60,11 +62,11 @@ src_configure() { |
27 |
} |
28 |
|
29 |
src_compile() { |
30 |
- use debug && append-flags -DDEBUG_TCP -DDEBUG_SCSI |
31 |
- |
32 |
+ # Stuffing CPPFLAGS into CFLAGS isn't entirely correct, but the build |
33 |
+ # is messed up already here, so it's not making it that much worse. |
34 |
KSRC="${KV_DIR}" CFLAGS="" \ |
35 |
emake \ |
36 |
- OPTFLAGS="${CFLAGS}" \ |
37 |
+ OPTFLAGS="${CFLAGS} ${CPPFLAGS}" \ |
38 |
AR="$(tc-getAR)" CC="$(tc-getCC)" \ |
39 |
user |
40 |
} |