View | Details | Raw Unified
Collapse All | Expand All

(-) pari-2.1.7.ebuild (+11 lines)
 Lines 19-24    Link Here 
	unpack ${A}
	unpack ${A}
	cd ${S}
	cd ${S}
	epatch ${FILESDIR}/docs.patch
	epatch ${FILESDIR}/docs.patch
	# remove exec stacks for x86; see bug #117434
	epatch ${FILESDIR}/pari-non-exec-stack-x86-gentoo.patch
}
}
src_compile() {
src_compile() {
 Lines 40-45    Link Here 
	#we also need to force -fPIC throughout on amd64
	#we also need to force -fPIC throughout on amd64
	if [ "${ARCH}" = "amd64" ] && ! is-flag -fPIC; then append-flags -fPIC; fi
	if [ "${ARCH}" = "amd64" ] && ! is-flag -fPIC; then append-flags -fPIC; fi
	# fix up build scripts to get rid of insecure RUNPATHS
	# see bug #117434
	sed -e "s|\$runpathprefix \$TOP/\$objdir:\$tmp||" \
	    -e "s|\$runpathprefix \$tmp||" -i config/Makefile.SH || \
		die "Failed to fix Makefile.SH"
	sed -e "s|-L\$libdir|-L./|" -i Configure || \
		die "Failed to fix Configure"
	./Configure \
	./Configure \
		--host=${myhost} \
		--host=${myhost} \
		--prefix=/usr \
		--prefix=/usr \