Skip to content

Commit

Permalink
sys-block/open-iscsi: fix handling of user CPPFLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
vapier committed Dec 18, 2015
1 parent 5eafff1 commit 449cec7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions sys-block/open-iscsi/open-iscsi-2.0.873-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ src_prepare() {
}

src_configure() {
use debug && append-cppflags -DDEBUG_TCP -DDEBUG_SCSI

cd utils/open-isns || die

# SSL (--with-security) is broken
Expand All @@ -60,11 +62,11 @@ src_configure() {
}

src_compile() {
use debug && append-flags -DDEBUG_TCP -DDEBUG_SCSI

# Stuffing CPPFLAGS into CFLAGS isn't entirely correct, but the build
# is messed up already here, so it's not making it that much worse.
KSRC="${KV_DIR}" CFLAGS="" \
emake \
OPTFLAGS="${CFLAGS}" \
OPTFLAGS="${CFLAGS} ${CPPFLAGS}" \
AR="$(tc-getAR)" CC="$(tc-getCC)" \
user
}
Expand Down

0 comments on commit 449cec7

Please sign in to comment.