1.1 --- a/scripts/build/libc/glibc-eglibc.sh-common Wed Aug 22 23:11:03 2012 +0200
1.2 +++ b/scripts/build/libc/glibc-eglibc.sh-common Thu Oct 11 14:39:44 2012 +1000
1.3 @@ -453,11 +453,16 @@
1.4 # Omit JOBSFLAGS as GLIBC has problems building the
1.5 # manuals in parallel
1.6 CT_DoExecLog ALL make pdf html
1.7 - # EGLIBC doesn't have a install-{pdf.html} and leaves the manuals
1.8 - # in the source directory
1.9 + # EGLIBC doesn't have a install-{pdf.html}, and older
1.10 + # versions leave the manuals in the source directory
1.11 CT_DoExecLog ALL mkdir -p ${CT_PREFIX_DIR}/share/doc
1.12 - CT_DoExecLog ALL cp -av ${src_dir}/manual/*.pdf ${src_dir}/manual/libc \
1.13 - ${CT_PREFIX_DIR}/share/doc
1.14 + if [ ${CT_LIBC_EGLIBC_2_16_or_later} = "y" ]; then
1.15 + CT_DoExecLog ALL cp -av manual/*.pdf manual/libc \
1.16 + ${CT_PREFIX_DIR}/share/doc
1.17 + else
1.18 + CT_DoExecLog ALL cp -av ${src_dir}/manual/*.pdf ${src_dir}/manual/libc \
1.19 + ${CT_PREFIX_DIR}/share/doc
1.20 + fi
1.21 fi
1.22
1.23 if [ "${CT_LIBC_LOCALES}" = "y" ]; then