From af32a5bb8161ea18d2509671ced3c060e51a2d3983d93b7d2c9e4a048acba6cb Mon Sep 17 00:00:00 2001 From: Atri Bhattacharya Date: Mon, 29 Jan 2018 15:44:27 +0000 Subject: [PATCH] Accepting request 570274 from home:StefanBruens:3dPrinting remove library hack, upstream intention was to link statically (default is changed by distribution default flag CMAKE_SHARED_LIBS=true) OBS-URL: https://build.opensuse.org/request/show/570274 OBS-URL: https://build.opensuse.org/package/show/science/cura-engine?expand=0&rev=14 --- cura-engine.changes | 5 +++++ cura-engine.spec | 6 ++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/cura-engine.changes b/cura-engine.changes index c157ad1..e93e38a 100644 --- a/cura-engine.changes +++ b/cura-engine.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Jan 27 21:49:49 UTC 2018 - stefan.bruens@rwth-aachen.de + +- Link private lib_CuraEngine statically to binary + ------------------------------------------------------------------- Thu Jan 25 08:34:20 UTC 2018 - adrian@suse.de diff --git a/cura-engine.spec b/cura-engine.spec index 2855699..3d91cac 100644 --- a/cura-engine.spec +++ b/cura-engine.spec @@ -47,7 +47,8 @@ It is part of the larger open source project called "Cura". export CC=gcc-6 export CXX=g++-6 %endif -%cmake -DCMAKE_POSITION_INDEPENDENT_CODE="true" +# make sure lib_CuraEngine is statically build and linked +%cmake -DCMAKE_POSITION_INDEPENDENT_CODE="true" -DBUILD_SHARED_LIBS="false" %make_jobs %install @@ -55,13 +56,10 @@ cd build %make_install install -Dm0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/CuraEngine.1 -# hack... not ready for the distro -install -Dm0755 lib_CuraEngine.so %{buildroot}%{_libdir}/lib_CuraEngine.so %files %defattr(-,root,root,-) %_bindir/CuraEngine -%_libdir/* %_mandir/man1/CuraEngine.1* %changelog