a60b29937b
Link with -latomic if needed to avoid the following build failure since
bump to version 2.68.2 in commit
dddb65efbd
:
/home/peko/autobuild/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/sparc-buildroot-linux-uclibc/9.3.0/../../../../sparc-buildroot-linux-uclibc/bin/ld: glib/glibmm/libglibmm-2.68.so.1.3.0.p/main.cc.o: in function `Glib::Source::reference() const':
main.cc:(.text+0xd40): undefined reference to `__atomic_fetch_add_4'
Fixes:
- http://autobuild.buildroot.org/results/6a2709956fbb16ac3cbf676acb242c88f83fcdae
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
30 lines
877 B
Makefile
30 lines
877 B
Makefile
################################################################################
|
|
#
|
|
# glibmm
|
|
#
|
|
################################################################################
|
|
|
|
GLIBMM_VERSION_MAJOR = 2.68
|
|
GLIBMM_VERSION = $(GLIBMM_VERSION_MAJOR).2
|
|
GLIBMM_LICENSE = LGPL-2.1+ (library), GPL-2.0+ (tools)
|
|
GLIBMM_LICENSE_FILES = COPYING COPYING.tools
|
|
GLIBMM_SOURCE = glibmm-$(GLIBMM_VERSION).tar.xz
|
|
GLIBMM_SITE = http://ftp.gnome.org/pub/gnome/sources/glibmm/$(GLIBMM_VERSION_MAJOR)
|
|
GLIBMM_INSTALL_STAGING = YES
|
|
GLIBMM_DEPENDENCIES = libglib2 libsigc host-pkgconf
|
|
GLIBMM_CONF_OPTS = -Dbuild-examples=false
|
|
|
|
GLIBMM_CXXFLAGS = $(TARGET_CXXFLAGS)
|
|
GLIBMM_LDFLAGS = $(TARGET_LDFLAGS)
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y)
|
|
GLIBMM_CXXFLAGS += -O0
|
|
endif
|
|
|
|
# Uses __atomic_fetch_add_4
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
|
GLIBMM_LDFLAGS += -latomic
|
|
endif
|
|
|
|
$(eval $(meson-package))
|