~ruther/guix-local

b3b98151f30552357b91154deb6cc71696af5537 — Doğan Çeçen 1 year, 9 months ago 337ce26
gnu: kcolorpicker: Build with -fPIC.

It fixes linking errors when building kimageannotator:

    ...
    ld:
    /gnu/store/...-kcolorpicker-0.3.1/lib/libkColorPicker.a(AbstractPopupMenuButton.cpp.o):
    relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol
    `_ZN15QAbstractButton7clickedEb@@Qt_6' which may bind externally can
    not be used when making a shared object; recompile with -fPIC
    ...

* gnu/packages/kde-frameworks.scm (kcolorpicker)[arguments]: Adjust
  configure-flags to add -fPIC to CMAKE_CXX_FLAGS.

Change-Id: I38c77cc641e48b3e992e8f49fd861d9ada818240
Signed-off-by: Zheng Junjie <zhengjunjie@iscas.ac.cn>
1 files changed, 2 insertions(+), 1 deletions(-)

M gnu/packages/kde-frameworks.scm
M gnu/packages/kde-frameworks.scm => gnu/packages/kde-frameworks.scm +2 -1
@@ 660,7 660,8 @@ Internet).")
    (build-system qt-build-system)
    (arguments
     (list #:qtbase qtbase
           #:configure-flags #~(list "-DBUILD_TESTS=ON"
           #:configure-flags #~(list "-DCMAKE_CXX_FLAGS=-fPIC"
                                     "-DBUILD_TESTS=ON"
                                     "-DBUILD_WITH_QT6=ON")))
    (home-page "https://github.com/ksnip/kColorPicker")
    (synopsis "Color Picker with popup menu")