From 83596e937d399d4bc75bad5f327d6010f05ecfc3 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 28 Dec 2016 17:44:38 +0800 Subject: detect ubuntu --- core/makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/makefile b/core/makefile index 7c5617305..a827680d3 100755 --- a/core/makefile +++ b/core/makefile @@ -282,7 +282,7 @@ endif # config static ifeq ($(PLAT),linux) -LDFLAG := $(LDFLAG) $(shell if [ -f "/etc/redhat-release" ]; then echo ""; else echo "-static"; fi ) +LDFLAG := $(LDFLAG) $(shell if [ -f "/etc/lsb-release" ] && [ `cat /etc/lsb-release | grep Ubuntu -o -m 1` == "Ubuntu" ]; then echo "-static"; else echo ""; fi ) endif # select package directory -- cgit v1.3.1