From 6223b9a5b82706af169c956538edfec27e37821b8cb973f6c1eb816e75f6ee59 Mon Sep 17 00:00:00 2001 From: Christophe Giboudeaux Date: Tue, 14 Jan 2020 18:06:38 +0000 Subject: [PATCH] Accepting request 764403 from home:gladiac:branches:graphics - Disable LTO as it removes required symbols * https://discuss.pixls.us/t/gmic-lookup-symbol-err-on-opensuse-darktable-master-build/15827 OBS-URL: https://build.opensuse.org/request/show/764403 OBS-URL: https://build.opensuse.org/package/show/graphics/gmic?expand=0&rev=35 --- gmic.changes | 6 ++++++ gmic.spec | 11 ++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/gmic.changes b/gmic.changes index 9dae8e1..cfe3a7a 100644 --- a/gmic.changes +++ b/gmic.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jan 14 17:54:46 UTC 2020 - Andreas Schneider + +- Disable LTO as it removes required symbols + * https://discuss.pixls.us/t/gmic-lookup-symbol-err-on-opensuse-darktable-master-build/15827 + ------------------------------------------------------------------- Wed Dec 25 08:22:52 UTC 2019 - Christophe Giboudeaux diff --git a/gmic.spec b/gmic.spec index 2f902c3..b87d9a8 100644 --- a/gmic.spec +++ b/gmic.spec @@ -1,7 +1,7 @@ # # spec file for package gmic # -# Copyright (c) 2019 SUSE LLC +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,6 +16,15 @@ # +# Disable LTO as it removes important symbols +# +# g++ use_libgmic.cpp -o use_gmic -L/tmp/local/gmic/lib64 -lgmic +# use_libgmic.cpp:function main: error: undefined reference to 'cimg_library::CImgList::assign(unsigned int)' +# +# https://discuss.pixls.us/t/gmic-lookup-symbol-err-on-opensuse-darktable-master-build/15827 +# +%define _lto_cflags %{nil} + %global _gimpplugindir %(gimptool-2.0 --gimpplugindir)/plug-ins %if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150200 %bcond_without digikam_plugin