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

(-)/home/flame/devel/gentoo-x86/app-arch/unzip/unzip-5.52-r1.ebuild (-3 / +6 lines)
Lines 19-31 Link Here
19
	unpack ${A}
19
	unpack ${A}
20
	cd "${S}"
20
	cd "${S}"
21
	epatch "${FILESDIR}"/${P}-no-exec-stack.patch
21
	epatch "${FILESDIR}"/${P}-no-exec-stack.patch
22
	append-lfs-flags #104315
23
	sed -i \
22
	sed -i \
24
		-e "s:-O3:${CFLAGS}:" \
23
		-e 's:-O3:${CFLAGS}:' \
25
		-e "s:CC=gcc :CC=$(tc-getCC) :" \
24
		-e "s:CC=gcc :CC=$(tc-getCC) :" \
26
		-e "s:LD=gcc :LD=$(tc-getCC) :" \
25
		-e "s:LD=gcc :LD=$(tc-getCC) :" \
27
		-e "s:-O :${CFLAGS} :" \
26
		-e 's:-O :${CFLAGS} :' \
28
		-e "s:LF2 = -s:LF2 = :" \
27
		-e "s:LF2 = -s:LF2 = :" \
28
		-e 's:LF = :LF = ${LDFLAGS} :' \
29
		-e 's:SL = :SL = ${LDFLAGS} :' \
30
		-e 's:FL = :FL = ${LDFLAGS} :' \
29
		unix/Makefile \
31
		unix/Makefile \
30
		|| die "sed unix/Makefile failed"
32
		|| die "sed unix/Makefile failed"
31
}
33
}
Lines 41-46 Link Here
41
		*-darwin*)    TARGET=macosx ;;
43
		*-darwin*)    TARGET=macosx ;;
42
		*)            die "Unknown target, you suck" ;;
44
		*)            die "Unknown target, you suck" ;;
43
	esac
45
	esac
46
	append-lfs-flags #104315
44
	emake -f unix/Makefile ${TARGET} || die "emake failed"
47
	emake -f unix/Makefile ${TARGET} || die "emake failed"
45
}
48
}
46
49

Return to bug 126831