2020-08-14 07:17:32 +02:00
|
|
|
include $(SHLR)/sdb.mk
|
2018-05-19 00:07:01 +02:00
|
|
|
include $(SHLR)/zip/deps.mk
|
2021-08-25 13:35:08 +02:00
|
|
|
|
|
|
|
LDFLAGS+=-lm
|
|
|
|
|
|
|
|
# NetBSD 7.0 ships with backtrace(3) in -lexecinfo
|
|
|
|
ifeq (${BUILD_OS},netbsd)
|
|
|
|
ifneq ($(shell expr "`uname -r`" : '[0-6]\.'), 2)
|
|
|
|
LDFLAGS+=-lexecinfo
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2021-08-25 14:15:15 +02:00
|
|
|
ifeq (${BUILD_OS},serenityos)
|
|
|
|
LDFLAGS+=
|
|
|
|
else
|
|
|
|
ifeq ($(OSTYPE),bsd)
|
|
|
|
LDFLAGS+=-lkvm
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2021-08-25 13:35:08 +02:00
|
|
|
# FreeBSD 10.0 ships with backtrace(3) in -lexecinfo
|
|
|
|
ifeq (${BUILD_OS},freebsd)
|
2021-08-25 13:47:36 +02:00
|
|
|
ifneq ($(shell expr "`uname -r`" : '[0-9]\.'), 2)
|
|
|
|
LDFLAGS+=-lexecinfo
|
|
|
|
endif
|
|
|
|
LDFLAGS+=-lutil
|
2021-08-25 13:35:08 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq (${BUILD_OS},dragonfly)
|
|
|
|
LDFLAGS+=-lexecinfo
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq (${BUILD_OS},haiku)
|
|
|
|
LDFLAGS+=-lexecinfo
|
|
|
|
endif
|
2021-08-25 13:47:36 +02:00
|
|
|
|
|
|
|
ifneq ($(OSTYPE),darwin)
|
|
|
|
ifneq ($(OSTYPE),haiku)
|
|
|
|
LDFLAGS+=-lm
|
|
|
|
LINK+=-lm
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|