Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 50791 | Differences between
and this patch

Collapse All | Expand All

(-)dosfstools-2.10.ebuild (-7 / +5 lines)
Lines 21-36 src_unpack() { Link Here
21
	sed -i "s:PREFIX\ \=:PREFIX\ \=\ \/usr:" Makefile
21
	sed -i "s:PREFIX\ \=:PREFIX\ \=\ \/usr:" Makefile
22
	sed	-i "s:\/usr\/man:\/share\/man:" Makefile
22
	sed	-i "s:\/usr\/man:\/share\/man:" Makefile
23
23
24
	# Bug: 34785 hardened-gcc transparently adds -fPIC so we must filter 
24
	# the compiler may be emiting PIC by default and the _llseek()
25
	# that away because this package cant cope. (Nov 30 2003 -solar)
25
	# used in msdos.c is not completely PIC aware on atleast x86.
26
	# has_version 'sys-devel/hardened-gcc' && \
26
	# (May 13 2004 -solar)
27
	#	sed -i -e "s:^DEBUGFLAGS.*:DEBUGFLAGS=-yet_exec:g" Makefile
27
	[ "${ARCH}" == "x86" ] && \
28
		sed -i "s:^DEBUGFLAGS.*:DEBUGFLAGS=-fno-pic:g" Makefile
28
}
29
}
29
30
30
src_compile() {
31
src_compile() {
31
32
	filter-flags -fPIC
33
34
	# this package does *not* play well with optimisations
32
	# this package does *not* play well with optimisations
35
	# please dont change to: make OPTFLAGS="${CFLAGS}"
33
	# please dont change to: make OPTFLAGS="${CFLAGS}"
36
	make || die
34
	make || die

Return to bug 50791