Use $(OS) in makefile to check for Darwin
authorClifford Wolf <clifford@clifford.at>
Sun, 13 May 2018 11:29:18 +0000 (13:29 +0200)
committerClifford Wolf <clifford@clifford.at>
Sun, 13 May 2018 11:29:18 +0000 (13:29 +0200)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Makefile

index 7c5cab8d3813ef59c036e217cfe4db7bd8ae691c..1caa0038bed2535775cf222bca63e8012ed70d89 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -67,7 +67,7 @@ SED ?= sed
 BISON ?= bison
 STRIP ?= strip
 
-ifeq (Darwin,$(findstring Darwin,$(shell uname)))
+ifeq ($(OS), Darwin)
 PLUGIN_LDFLAGS += -undefined dynamic_lookup
 
 # homebrew search paths