cura-engine: fix gcc7 build

This commit is contained in:
Jürgen Buchmüller 2017-11-03 18:10:06 +01:00
parent d1418f748c
commit b882ff32a7

View file

@ -14,7 +14,13 @@ license="AGPL-3"
homepage="https://github.com/Ultimaker/CuraEngine"
distfiles="https://github.com/Ultimaker/CuraEngine/archive/${version}.tar.gz"
checksum=a8e9b99b42844dce1516c21e4d46bc40e17afbb3abec9ef92f3bb352d3cb12fb
broken=https://build.voidlinux.eu/builders/x86_64_builder/builds/5686/steps/shell_3/logs/stdio
CXXFLAGS="-D_GLIBCXX_USE_C99_STDIO=1 -D_GLIBCXX_USE_C99_STDLIB=1"
pre_configure() {
# Can't link against libstdc++.a because of R_X86_64_32 relocations
sed -i CMakeLists.txt -e"s; -static-libstdc++;;"
}
post_install() {
vlicense LICENSE