|
|
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() { |
|
|
#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 \ |