diff --git a/krita.spec b/krita.spec index 09ab069..07332ff 100644 --- a/krita.spec +++ b/krita.spec @@ -102,7 +102,8 @@ Krita is the image manipulation application of the Calligra Suite. %setup -q -n krita-%{version} %build -%cmake_kf5 -d build -- -DCMAKE_LD_FLAGS(:STRING)=""-Wl,-z -Wl,defs -avoid-version"" +export LDFLAGS="%optflags -avoid-version" +%cmake_kf5 -d build %make_jobs %install