|
Lines 15-36
KEYWORDS="x86 ~ppc sparc ~alpha hppa amd
Link Here
|
| 15 |
DEPEND="virtual/glibc" |
15 |
DEPEND="virtual/glibc" |
| 16 |
|
16 |
|
| 17 |
src_unpack() { |
17 |
src_unpack() { |
|
|
18 |
local mr_bones="check our disk ops or mr_bones will hunt us down." |
| 19 |
|
| 18 |
unpack ${A}; cd ${S} |
20 |
unpack ${A}; cd ${S} |
| 19 |
epatch ${FILESDIR}/errno.patch |
21 |
epatch ${FILESDIR}/errno.patch |
| 20 |
epatch ${FILESDIR}/${P}-2.6.headers.patch |
22 |
epatch ${FILESDIR}/${P}-2.6.headers.patch |
| 21 |
sed -i "s:PREFIX\ \=:PREFIX\ \=\ \/usr:" Makefile |
23 |
sed -i "s:PREFIX\ \=:PREFIX\ \=\ \/usr:" Makefile || die "${mr_bones}" |
| 22 |
sed -i "s:\/usr\/man:\/share\/man:" Makefile |
24 |
sed -i "s:\/usr\/man:\/share\/man:" Makefile || die "${mr_bones}" |
| 23 |
|
25 |
if [ "${ARCH}" == "x86" ]; then |
| 24 |
# Bug: 34785 hardened-gcc transparently adds -fPIC so we must filter |
26 |
sed -i "s:^DEBUGFLAGS.*:DEBUGFLAGS=-fno-pic:g" Makefile || die "${mr_bones}" |
| 25 |
# that away because this package cant cope. (Nov 30 2003 -solar) |
27 |
fi |
| 26 |
# has_version 'sys-devel/hardened-gcc' && \ |
|
|
| 27 |
# sed -i -e "s:^DEBUGFLAGS.*:DEBUGFLAGS=-yet_exec:g" Makefile |
| 28 |
} |
28 |
} |
| 29 |
|
29 |
|
| 30 |
src_compile() { |
30 |
src_compile() { |
| 31 |
|
|
|
| 32 |
filter-flags -fPIC |
| 33 |
|
| 34 |
# this package does *not* play well with optimisations |
31 |
# this package does *not* play well with optimisations |
| 35 |
# please dont change to: make OPTFLAGS="${CFLAGS}" |
32 |
# please dont change to: make OPTFLAGS="${CFLAGS}" |
| 36 |
make || die |
33 |
make || die |