From bf2742dee8a2719973b0f59fa049f9fe2aa08600 Mon Sep 17 00:00:00 2001 From: cancel Date: Fri, 30 Nov 2018 23:33:09 +0900 Subject: [PATCH] Fix -no-pie error on mac in build tool --- tool | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool b/tool index 7aeaade..2766a5c 100755 --- a/tool +++ b/tool @@ -174,7 +174,7 @@ build_target() { fi if [[ $pie_enabled = 1 ]]; then add cc_flags -pie -fpie -Wl,-pie - else + elif [[ $os != mac ]]; then add cc_flags -no-pie -fno-pie fi case "$1" in