Move bsd linkage to util/deps.mk

This commit is contained in:
pancake 2021-08-25 13:35:08 +02:00 committed by GitHub
parent eaadf64e1d
commit 891a9813bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 22 deletions

View File

@ -47,29 +47,7 @@ CWD=$(shell pwd)
LDFLAGS+=${BN_LIBS}
LDFLAGS+=${TH_LIBS}
LDFLAGS+=${DL_LIBS}
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
# FreeBSD 10.0 ships with backtrace(3) in -lexecinfo
ifeq (${BUILD_OS},freebsd)
ifneq ($(shell expr "`uname -r`" : '[0-9]\.'), 2)
LDFLAGS+=-lexecinfo
endif
endif
ifeq (${BUILD_OS},dragonfly)
LDFLAGS+=-lexecinfo
endif
ifeq (${BUILD_OS},haiku)
LDFLAGS+=-lexecinfo
endif
EXTRA_PRE+=spp_config
EXTRA_PRE+=charsets

View File

@ -1,2 +1,26 @@
include $(SHLR)/sdb.mk
include $(SHLR)/zip/deps.mk
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
# FreeBSD 10.0 ships with backtrace(3) in -lexecinfo
ifeq (${BUILD_OS},freebsd)
ifneq ($(shell expr "`uname -r`" : '[0-9]\.'), 2)
LDFLAGS+=-lexecinfo
endif
endif
ifeq (${BUILD_OS},dragonfly)
LDFLAGS+=-lexecinfo
endif
ifeq (${BUILD_OS},haiku)
LDFLAGS+=-lexecinfo
endif