![Thomas Petazzoni](/assets/img/avatar_default.png)
Just like -lpthread was passed in LIBS, -latomic should also be passed
in LIBS. In order for this to work, we however need to first fix
cc-tool's Makefile.am so that it does not overwrite LIBS.
This is the first part of fixing the build of cc-tool in a static
linking scenario on SPARC, i.e to fix:
http://autobuild.buildroot.net/results/ed9f2524d0ccef318ff1bc99e5dea980111de989/
The patch has been merged upstream, in
553f9c6016
.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
32 lines
933 B
Makefile
32 lines
933 B
Makefile
################################################################################
|
|
#
|
|
# cc-tool
|
|
#
|
|
################################################################################
|
|
|
|
CC_TOOL_VERSION = 0.26
|
|
CC_TOOL_SITE = http://downloads.sourceforge.net/project/cctool
|
|
CC_TOOL_SOURCE = cc-tool-$(CC_TOOL_VERSION)-src.tgz
|
|
CC_TOOL_LICENSE = GPL-2.0
|
|
CC_TOOL_LICENSE_FILES = COPYING
|
|
CC_TOOL_DEPENDENCIES = boost libusb
|
|
|
|
# we're patching boost.m4
|
|
CC_TOOL_AUTORECONF = YES
|
|
|
|
# Configure script "discovers" boost in /usr/local if not given explicitly
|
|
CC_TOOL_CONF_OPTS = --with-boost=$(STAGING_DIR)/usr
|
|
CC_TOOL_CONF_ENV = LIBS="$(CC_TOOL_LIBS)"
|
|
|
|
# Help boost.m4 find the Boost Regex library, which needs the pthread
|
|
# library, but isn't detected using a modern (pkg-config) mechanism.
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
CC_TOOL_LIBS += -lpthread
|
|
endif
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
|
CC_TOOL_LIBS += -latomic
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|