mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-26 00:55:59 +00:00
Move bsd linkage to util/deps.mk
This commit is contained in:
parent
eaadf64e1d
commit
891a9813bf
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user