using CC -dumpmachine instead of uname

This commit is contained in:
Maxim Devaev
2026-02-07 17:02:43 +02:00
parent 39c1916f61
commit 5e13f4cd58
2 changed files with 3 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ _BUILD = build
# =====
ifneq ($(shell sh -c 'uname 2>/dev/null || echo Unknown'),FreeBSD)
ifeq ($(findstring bsd,$(shell $(CC) -dumpmachine)),)
override _LDFLAGS += -latomic
endif