Lines 19-24
Link Here
|
19 |
unpack ${A} |
19 |
unpack ${A} |
20 |
cd ${S} |
20 |
cd ${S} |
21 |
epatch ${FILESDIR}/docs.patch |
21 |
epatch ${FILESDIR}/docs.patch |
|
|
22 |
|
23 |
# remove exec stacks for x86; see bug #117434 |
24 |
epatch ${FILESDIR}/pari-non-exec-stack-x86-gentoo.patch |
22 |
} |
25 |
} |
23 |
|
26 |
|
24 |
src_compile() { |
27 |
src_compile() { |
Lines 40-45
Link Here
|
40 |
#we also need to force -fPIC throughout on amd64 |
43 |
#we also need to force -fPIC throughout on amd64 |
41 |
if [ "${ARCH}" = "amd64" ] && ! is-flag -fPIC; then append-flags -fPIC; fi |
44 |
if [ "${ARCH}" = "amd64" ] && ! is-flag -fPIC; then append-flags -fPIC; fi |
42 |
|
45 |
|
|
|
46 |
# fix up build scripts to get rid of insecure RUNPATHS |
47 |
# see bug #117434 |
48 |
sed -e "s|\$runpathprefix \$TOP/\$objdir:\$tmp||" \ |
49 |
-e "s|\$runpathprefix \$tmp||" -i config/Makefile.SH || \ |
50 |
die "Failed to fix Makefile.SH" |
51 |
sed -e "s|-L\$libdir|-L./|" -i Configure || \ |
52 |
die "Failed to fix Configure" |
53 |
|
43 |
./Configure \ |
54 |
./Configure \ |
44 |
--host=${myhost} \ |
55 |
--host=${myhost} \ |
45 |
--prefix=/usr \ |
56 |
--prefix=/usr \ |