kumquat-buildroot/package/kf5/kf5-modemmanager-qt/kf5-modemmanager-qt.mk
Gleb Mazovetskiy 7333207eaf Fix -latomic for CMake packages
The poppler package failed to build for me with errors such as this one:

    host/aarch64-buildroot-linux-gnu/include/c++/10.3.0/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
       75 | #include_next <stdlib.h>
          |               ^~~~~~~~~~

Changing the CMake option to a link-specific one fixes the issue.

Also change other packages with the same issue: cutelyst, gerbera,
kf5-modemmanager-qt, kodi and wampcc.

Signed-off-by: Gleb Mazovetskiy <glex.spb@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2021-05-01 15:00:18 +02:00

22 lines
736 B
Makefile

################################################################################
#
# kf5-modemmanager-qt
#
################################################################################
KF5_MODEMMANAGER_QT_VERSION = $(KF5_VERSION)
KF5_MODEMMANAGER_QT_SITE = $(KF5_SITE)
KF5_MODEMMANAGER_QT_SOURCE = modemmanager-qt-$(KF5_MODEMMANAGER_QT_VERSION).tar.xz
KF5_MODEMMANAGER_QT_LICENSE = LGPL-2.1+
KF5_MODEMMANAGER_QT_LICENSE_FILES = COPYING.LIB
KF5_MODEMMANAGER_QT_DEPENDENCIES = kf5-extra-cmake-modules modem-manager qt5base
KF5_MODEMMANAGER_QT_INSTALL_STAGING = YES
# Uses __atomic_fetch_add_4
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
KF5_MODEMMANAGER_QT_CONF_OPTS += -DCMAKE_EXE_LINKER_FLAGS=-latomic
endif
$(eval $(cmake-package))