p/p/l-s/profile.bashrc: don't build zlib test binaries during bootstrap.
authorBenda Xu <heroxbd@gentoo.org>
Wed, 15 Jun 2016 08:05:11 +0000 (17:05 +0900)
committerBenda Xu <heroxbd@gentoo.org>
Wed, 15 Jun 2016 08:06:26 +0000 (17:06 +0900)
profiles/prefix/linux-standalone/profile.bashrc

index 77092b95fed8e705ea0922b966e9826fae484eb6..ed3523782ecc7c86289b53e4334d5de37ed76260 100644 (file)
@@ -73,6 +73,11 @@ elif [[ ${CATEGORY}/${PN} == sys-devel/make && ${EBUILD_PHASE} == prepare ]]; th
     ebegin "Prefixifying default shell"
     sed -i -r "/default_shell/s,\"(/bin/sh),\"${EPREFIX}\1," "${S}"/job.c
     eend $?
+elif [[ ${CATEGORY}/${PN} == sys-libs/zlib && ${EBUILD_PHASE} == prepare ]]; then
+    [[ -n "${BOOTSTRAP_RAP}" ]] || return 0
+    ebegin "Remove executable builds for bootstrap"
+    sed -i 's/ALL=.*/ALL="\\$(LIBS)"/' "${S}"/configure
+    eend $?
 elif [[ ${CATEGORY}/${PN} == dev-lang/php && ${EBUILD_PHASE} == prepare ]]; then
     # introduced in bug 419525, subtle glibc location difference.
     ebegin "Prefixifying ext/iconv/config.m4 paths"