Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 409259
Collapse All | Expand All

(-)a/vixie-cron-4.1-r12.ebuild (-4 / +8 lines)
Lines 44-58 Link Here
44
44
45
	use pam && epatch ${FILESDIR}/${P}-pam.patch
45
	use pam && epatch ${FILESDIR}/${P}-pam.patch
46
	use selinux && epatch ${FILESDIR}/${SELINUX_PATCH}
46
	use selinux && epatch ${FILESDIR}/${SELINUX_PATCH}
47
48
	sed -i Makefile \
49
		-e "s|gcc \(-Wall.*\)|$(tc-getCC) \1|" \
50
		-e 's|^INCLUDE[ \t]\+=\(.*\)|CPPFLAGS+=\1|' \
51
		-e '/^CFLAGS	/d' \
52
		-e '/^LDFLAGS	/d' \
53
		-e 's/$(LDFLAGS)/$(CFLAGS) $(CPPFLAGS) &/' \
54
		|| die "sed Makefile failed"
47
}
55
}
48
56
49
src_compile() {
57
src_compile() {
50
	use debug && append-flags -DDEBUGGING
58
	use debug && append-flags -DDEBUGGING
51
59
52
	sed -i -e "s:gcc \(-Wall.*\):$(tc-getCC) \1 ${CFLAGS}:" \
53
		-e "s:^\(LDFLAGS[ \t]\+=\).*:\1 ${LDFLAGS}:" Makefile \
54
		|| die "sed Makefile failed"
55
56
	emake || die "emake failed"
60
	emake || die "emake failed"
57
}
61
}
58
62

Return to bug 409259