From 1586ab07e967c34dc2737488955f4633a0dd1ce0 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 23 Oct 2008 17:41:36 +0200 Subject: [PATCH] Make /usr/bin/cc link to gcc in the chroot. --HG-- extra : convert_revision : 7fe8854837724febb381f19444c5ac81c39a8d33 --- helper-templates/install-chroot.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/helper-templates/install-chroot.sh b/helper-templates/install-chroot.sh index f60a5acb60e..759a963829b 100644 --- a/helper-templates/install-chroot.sh +++ b/helper-templates/install-chroot.sh @@ -30,6 +30,10 @@ if [ ! -f $XBPS_MASTERDIR/.xbps_perms_done ]; then touch $XBPS_MASTERDIR/.xbps_perms_done fi +if [ ! -h $XBPS_MASTERDIR/usr/bin/cc ]; then + cd $XBPS_MASTERDIR/usr/bin && ln -s gcc cc +fi + for f in bin sbin tmp var sys proc dev xbps; do [ ! -d $XBPS_MASTERDIR/$f ] && mkdir -p $XBPS_MASTERDIR/$f done