SHA256
1
0
forked from pool/cura-engine

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
This commit is contained in:
Atri Bhattacharya 2018-01-29 15:44:27 +00:00 committed by Git OBS Bridge
parent 7d61688d3b
commit af32a5bb81
2 changed files with 7 additions and 4 deletions

View File

@ -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 Thu Jan 25 08:34:20 UTC 2018 - adrian@suse.de

View File

@ -47,7 +47,8 @@ It is part of the larger open source project called "Cura".
export CC=gcc-6 export CC=gcc-6
export CXX=g++-6 export CXX=g++-6
%endif %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 %make_jobs
%install %install
@ -55,13 +56,10 @@ cd build
%make_install %make_install
install -Dm0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/CuraEngine.1 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 %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%_bindir/CuraEngine %_bindir/CuraEngine
%_libdir/*
%_mandir/man1/CuraEngine.1* %_mandir/man1/CuraEngine.1*
%changelog %changelog