File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ _BUILD = build
1919
2020
2121# =====
22- ifneq ($(shell sh -c 'uname 2>/dev/null || echo Unknown') ,FreeBSD )
22+ ifeq ($(findstring bsd, $( shell $( CC ) -dumpmachine) ) , )
2323override _LDFLAGS += -latomic
2424endif
2525
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ _OBJS = $(_USTR_SRCS:%.c=$(_BUILD)/%.o) $(_DUMP_SRCS:%.c=$(_BUILD)/%.o)
4646
4747
4848# =====
49- ifneq ($(shell sh -c 'uname 2>/dev/null || echo Unknown') ,FreeBSD )
49+ ifeq ($(findstring bsd, $( shell $( CC ) -dumpmachine) ) , )
5050override _USTR_LDFLAGS += -latomic
5151override _DUMP_LDFLAGS += -latomic
5252override _V4P_LDFLAGS += -latomic
7878
7979ifneq ($(MK_WITH_SETPROCTITLE ) ,)
8080override _CFLAGS += -DMK_WITH_SETPROCTITLE -DWITH_SETPROCTITLE
81- ifeq ($(shell uname -s | tr A-Z a-z) ,linux )
81+ ifneq ($(findstring linux, $( shell $( CC ) -dumpmachine) ) , )
8282override _USTR_LDFLAGS += -lbsd
8383endif
8484endif
You can’t perform that action at this time.
0 commit comments