gcc-multilib.sh 697 Bytes
Newer Older
1 2
#!/bin/sh

3
[ "$1" != "--run" ] && echo "Install gcc with support for building 32-bit applications" && exit
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24

. $(dirname $0)/common.sh

[ "$(epm print info -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1

case "$(epm print info -s)" in
    alt)
        epm assure gcc || exit
        #GCCVERSION=$(epm print version for package gcc)
        #epmi i586-gcc$GCCVERSION
        epmi $(epmq --short gcc{8,9,10,11,12,13,14,15,16,17} 2>/dev/null | sed -e 's|^gcc|i586-gcc|') i586-glibc-devel
        ;;
    ubuntu|debian)
        epm install gcc-multilib
        ;;
#    fedora|centos|redos|rhel)
#        ;;
    *)
        fatal "unsupported vendor $(epm print info -s)"
        ;;
esac