1
0
Adrian Schröter 2019-01-02 11:56:58 +00:00 committed by Git OBS Bridge
parent b8a21ec973
commit dcc0d771a2

View File

@ -50,9 +50,8 @@ This is the LulzBot variation of the engine.
export CC=gcc-6
export CXX=g++-6
%endif
# make sure internal lib_CuraEngine is statically build and linked
%cmake -DCMAKE_POSITION_INDEPENDENT_CODE="true" -DBUILD_SHARED_LIBS="false"
%cmake -DCMAKE_C_FLAGS="%{optflags} -fPIC" \
-DCMAKE_CXX_FLAGS="%{optflags} -fPIC -fpermissive"
make %{?_smp_mflags}
%install
@ -61,12 +60,13 @@ cd build
install -Dm0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/CuraEngine-lulzbot.1
mv %buildroot%_bindir/CuraEngine{,-lulzbot}
# hack... not ready for the distro
install -Dm0755 lib_CuraEngine.so %{buildroot}%{_libdir}/lib_CuraEngine.so
%files
%doc README.md Changelog.md
%license LICENSE
%defattr(-,root,root,-)
%_bindir/CuraEngine-lulzbot
%_libdir/*
%_mandir/man1/CuraEngine-lulzbot.1*
%changelog