From 9495e4edea799dfdecfd3c0d23fcbe7171143516 Mon Sep 17 00:00:00 2001 From: leleliu008 Date: Mon, 8 Jul 2024 17:41:13 +0800 Subject: [PATCH] fixed bug introdced by https://github.com/nowsecure/fsmon/pull/54/files --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 6b31b96..a59b715 100644 --- a/Makefile +++ b/Makefile @@ -11,11 +11,11 @@ SOURCES+=backend/*.c TARGET_TRIPLE := $(shell $(CC) -dumpmachine 2>/dev/null) -ifneq ($(findstring -darwin,$(TARGET_MACHINE)),) +ifneq ($(findstring -darwin,$(TARGET_TRIPLE)),) TARGET_OS_TYPE=Darwin -else ifneq ($(findstring -linux,$(TARGET_MACHINE)),) +else ifneq ($(findstring -linux,$(TARGET_TRIPLE)),) TARGET_OS_TYPE=Linux -else ifneq ($(findstring -android,$(TARGET_MACHINE)),) +else ifneq ($(findstring -android,$(TARGET_TRIPLE)),) TARGET_OS_TYPE=Linux else TARGET_OS_TYPE=$(shell uname)