xref: /OK3568_Linux_fs/buildroot/package/cc-tool/cc-tool.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# cc-tool
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunCC_TOOL_VERSION = 0.27
8*4882a593SmuzhiyunCC_TOOL_SITE = $(call github,dashesy,cc-tool,v$(CC_TOOL_VERSION))
9*4882a593SmuzhiyunCC_TOOL_LICENSE = GPL-2.0
10*4882a593SmuzhiyunCC_TOOL_LICENSE_FILES = COPYING
11*4882a593SmuzhiyunCC_TOOL_DEPENDENCIES = boost libusb
12*4882a593Smuzhiyun
13*4882a593Smuzhiyun# From git
14*4882a593SmuzhiyunCC_TOOL_AUTORECONF = YES
15*4882a593Smuzhiyun
16*4882a593Smuzhiyun# Configure script "discovers" boost in /usr/local if not given explicitly
17*4882a593SmuzhiyunCC_TOOL_CONF_OPTS = --with-boost=$(STAGING_DIR)/usr
18*4882a593SmuzhiyunCC_TOOL_CONF_ENV = LIBS="$(CC_TOOL_LIBS)"
19*4882a593Smuzhiyun
20*4882a593Smuzhiyun# Help boost.m4 find the Boost Regex library, which needs the pthread
21*4882a593Smuzhiyun# library, but isn't detected using a modern (pkg-config) mechanism.
22*4882a593Smuzhiyunifeq ($(BR2_STATIC_LIBS),y)
23*4882a593SmuzhiyunCC_TOOL_LIBS += -lpthread
24*4882a593Smuzhiyunendif
25*4882a593Smuzhiyun
26*4882a593Smuzhiyunifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
27*4882a593SmuzhiyunCC_TOOL_LIBS += -latomic
28*4882a593Smuzhiyunendif
29*4882a593Smuzhiyun
30*4882a593Smuzhiyun$(eval $(autotools-package))
31