mirror of
https://github.com/rui314/mold.git
synced 2024-09-11 13:06:59 +03:00
Simplify
This commit is contained in:
parent
da0ee683a3
commit
081e447a1b
@ -1,49 +1,39 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# This script installs binary packages needed to build mold.
|
||||||
|
# Feel free to send me a PR if your OS is not on this list.
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
. /etc/os-release
|
. /etc/os-release
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
# The first line for each distro installs a build dependency.
|
|
||||||
# The second line installs extra packages for unittests.
|
|
||||||
#
|
|
||||||
# Feel free to send me a PR if your OS is not on this list.
|
|
||||||
|
|
||||||
case "$ID-$VERSION_ID" in
|
case "$ID-$VERSION_ID" in
|
||||||
ubuntu-20.* | pop-20.*)
|
ubuntu-20.* | pop-20.*)
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y cmake gcc g++ g++-10
|
apt-get install -y cmake gcc g++ g++-10 file
|
||||||
apt-get install -y file
|
|
||||||
;;
|
;;
|
||||||
ubuntu-* | pop-* | linuxmint-* | debian-* | raspbian-*)
|
ubuntu-* | pop-* | linuxmint-* | debian-* | raspbian-*)
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y cmake gcc g++
|
apt-get install -y cmake gcc g++ file
|
||||||
apt-get install -y file
|
|
||||||
;;
|
;;
|
||||||
fedora-* | amzn-* | rhel-*)
|
fedora-* | amzn-* | rhel-*)
|
||||||
dnf install -y gcc-g++ cmake
|
dnf install -y gcc-g++ cmake glibc-static file libstdc++-static diffutils util-linux
|
||||||
dnf install -y glibc-static file libstdc++-static diffutils util-linux
|
|
||||||
;;
|
;;
|
||||||
opensuse-leap-*)
|
opensuse-leap-*)
|
||||||
zypper install -y make cmake gcc-c++ gcc11-c++
|
zypper install -y make cmake gcc-c++ gcc11-c++ glibc-devel-static tar diffutils util-linux
|
||||||
zypper install -y glibc-devel-static tar diffutils util-linux
|
|
||||||
;;
|
;;
|
||||||
opensuse-tumbleweed-*)
|
opensuse-tumbleweed-*)
|
||||||
zypper install -y make cmake gcc-c++
|
zypper install -y make cmake gcc-c++ glibc-devel-static tar diffutils util-linux
|
||||||
zypper install -y glibc-devel-static tar diffutils util-linux
|
|
||||||
;;
|
;;
|
||||||
gentoo-*)
|
gentoo-*)
|
||||||
emerge-webrsync
|
emerge-webrsync
|
||||||
emerge dev-util/cmake
|
emerge dev-util/cmake
|
||||||
;;
|
;;
|
||||||
arch-* | archarm-* | artix-* | endeavouros-*)
|
arch-* | archarm-* | artix-* | endeavouros-*)
|
||||||
pacman -Sy
|
pacman -Sy --needed --noconfirm base-devel cmake util-linux
|
||||||
pacman -S --needed --noconfirm base-devel cmake util-linux
|
|
||||||
;;
|
;;
|
||||||
void-*)
|
void-*)
|
||||||
xbps-install -Sy xbps
|
xbps-install -Sy xbps bash make cmake gcc tar diffutils util-linux
|
||||||
xbps-install -Sy bash make cmake gcc
|
|
||||||
xbps-install -Sy tar diffutils util-linux
|
|
||||||
;;
|
;;
|
||||||
alpine-*)
|
alpine-*)
|
||||||
apk update
|
apk update
|
||||||
|
Loading…
Reference in New Issue
Block a user