summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFanjun Kong <[email protected]>2020-09-25 17:29:23 +0800
committerFanjun Kong <[email protected]>2020-09-25 17:36:25 +0800
commiteb999b9af4402fdb1263fcfabe727be76bbeabc9 (patch)
tree0c61f0554909f671413f192340fd95d67d5f70ba /Makefile
parent4c0793950cef3de81a811cea2ef2169a1c09bee5 (diff)
diagnose-tools: Make code more robust on Ubuntu.
Signed-off-by: Fanjun Kong <[email protected]>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8ca5b26..27896a0 100644
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,8 @@ else
endif
devel:
-ifneq ($(findstring Ubuntu,$(UNAME_A)),)
+ifneq ($(findstring Ubuntu,$(UNAME_A) $(shell test -e /etc/os-release && head -1 /etc/os-release)),)
+ apt update
apt -y install gcc
apt -y install g++
apt -y install libunwind8-dev
@@ -24,6 +25,7 @@ ifneq ($(findstring Ubuntu,$(UNAME_A)),)
apt -y install bash-completion # git自动补全
apt install openjdk-8-jdk
else
+ yum check-update
yum install -y libstdc++-static
yum install -y glibc-static
yum install -y zlib-devel