3c4ff9cea9
Switch to cmake to fix a build failure on m68k with uclibc because glog's configure tests wrongly thinks that -fPIE works By switching to cmake, we can remove the patch as the unittests won't be built anymore We can also finely tune options such as gflags, threads and dynamic library support. This last option is handled through the standard BUILD_SHARED_LIBS option Fixes: - http://autobuild.buildroot.net/results/5a659d960c24256a2905f129dfa70e3dc9e92aec Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
23 lines
595 B
Makefile
23 lines
595 B
Makefile
################################################################################
|
|
#
|
|
# glog
|
|
#
|
|
################################################################################
|
|
|
|
GLOG_VERSION = 0.4.0
|
|
GLOG_SITE = $(call github,google,glog,v$(GLOG_VERSION))
|
|
GLOG_INSTALL_STAGING = YES
|
|
GLOG_LICENSE = BSD-3-Clause
|
|
GLOG_LICENSE_FILES = COPYING
|
|
GLOG_CONF_OPTS = \
|
|
$(if $(BR2_TOOLCHAIN_HAS_THREADS),-DWITH_THREADS=ON, -DWITH_THREADS=OFF)
|
|
|
|
ifeq ($(BR2_PACKAGE_GFLAGS),y)
|
|
GLOG_DEPENDENCIES = gflags
|
|
GLOG_CONF_OPTS += -DWITH_GFLAGS=ON
|
|
else
|
|
GLOG_CONF_OPTS += -DWITH_GFLAGS=OFF
|
|
endif
|
|
|
|
$(eval $(cmake-package))
|