summaryrefslogtreecommitdiff
path: root/core/makefile
diff options
context:
space:
mode:
authorruki <[email protected]>2016-12-28 17:44:38 +0800
committerruki <[email protected]>2016-12-28 17:44:38 +0800
commit83596e937d399d4bc75bad5f327d6010f05ecfc3 (patch)
tree044776d7630606090e16668096501fa6ab03766a /core/makefile
parentdc3c4073a5c19907342ae31215f358176982d96c (diff)
detect ubuntu
Diffstat (limited to 'core/makefile')
-rwxr-xr-xcore/makefile2
1 files changed, 1 insertions, 1 deletions
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