mirror of
https://git.busybox.net/buildroot.git
synced 2024-12-12 23:03:29 +08:00
198e42d6eb
Force Release otherwise libraries will be suffixed by _debug which will raise unexpected build failures with packages that use gflags (e.g. rocksdb) Fixes: - http://autobuild.buildroot.org/results/3545774258babc3584f69e7d523efdf7fff1acb5 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
23 lines
723 B
Makefile
23 lines
723 B
Makefile
################################################################################
|
|
#
|
|
# gflags
|
|
#
|
|
################################################################################
|
|
|
|
GFLAGS_VERSION = 2.2.2
|
|
GFLAGS_SITE = $(call github,gflags,gflags,v$(GFLAGS_VERSION))
|
|
GFLAGS_INSTALL_STAGING = YES
|
|
GFLAGS_LICENSE = BSD-3-Clause
|
|
GFLAGS_LICENSE_FILES = COPYING.txt
|
|
|
|
# Force Release otherwise libraries will be suffixed by _debug which will raise
|
|
# unexpected build failures with packages that use gflags (e.g. rocksdb)
|
|
GFLAGS_CONF_OPTS = -DCMAKE_BUILD_TYPE=Release
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),)
|
|
GFLAGS_CONF_OPTS += -DBUILD_gflags_LIB=OFF \
|
|
-DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) -DNO_THREADS"
|
|
endif
|
|
|
|
$(eval $(cmake-package))
|