44 |
mpatch ${PNAME}-5.8.7-Configure_multilib-1.patch || die |
mpatch ${PNAME}-5.8.7-Configure_multilib-1.patch || die |
45 |
fi |
fi |
46 |
|
|
|
# force use of system-zlib |
|
|
all-abis 'sed -i "/^BUILD_ZLIB/s/True/False/" cpan/Compress-Raw-Zlib/config.in || die' |
|
|
all-abis 'sed -i "/^INCLUDE/s,\./zlib-src,/usr/include," cpan/Compress-Raw-Zlib/config.in || die' |
|
|
all-abis 'sed -i "/^LIB/s,\./zlib-src,/usr/lib," cpan/Compress-Raw-Zlib/config.in || die' |
|
|
|
|
47 |
# tell perl where to install the libs to |
# tell perl where to install the libs to |
48 |
all-abis 'echo "installstyle=\"$(mlibdir)/perl5\"" >>hints/linux.sh || die' |
all-abis 'echo "installstyle=\"$(mlibdir)/perl5\"" >>hints/linux.sh || die' |
49 |
} |
} |
54 |
# set a hook to check for each detected library whether it actually works. |
# set a hook to check for each detected library whether it actually works. |
55 |
export libscheck=" |
export libscheck=" |
56 |
( echo 'main(){}' > '${SRCDIR}'-$(mabi)/conftest.c && |
( echo 'main(){}' > '${SRCDIR}'-$(mabi)/conftest.c && |
57 |
'${CC}' -o '${SRCDIR}'-$(mabi)/conftest '${SRCDIR}'-$(mabi)/conftest.c -l\$thislib >/dev/null 2>/dev/null |
$(mabi-cc) -o '${SRCDIR}'-$(mabi)/conftest '${SRCDIR}'-$(mabi)/conftest.c -l\$thislib >/dev/null 2>/dev/null |
58 |
) || xxx=/dev/null" |
) || xxx=/dev/null" |
59 |
|
|
60 |
# filter -march from cflags |
# filter -march from cflags |