darktable: make this work on AMD CPUs by forcing SSE instructions.

This commit is contained in:
Juan RP 2014-05-08 11:26:48 +02:00
parent 221a750b0a
commit 0315e49a49

View file

@ -1,7 +1,7 @@
# Template file for 'darktable'
pkgname=darktable
version=1.4.2
revision=2
revision=3
build_style=cmake
maintainer="Carlo Dormeletti <carlo.dormeletti@email.it>"
homepage="http://www.darktable.org/"
@ -17,6 +17,12 @@ makedepends="gtk+-devel glib-devel exiv2-devel lcms2-devel
distfiles="${SOURCEFORGE_SITE}/${pkgname}/1.4/${pkgname}-${version}.tar.xz"
checksum="c1311a6e336007b85d21647652ebec3e26840248a968eab04ab5f0a56c2e0709"
# This needs to be built with SSE, otherwise some CPUs might crash with
# an ilegal instruction (vstmxcsr). Notably most AMD CPUs with -mtune=generic.
#
# Let's assume this has been fixed in recent gcc versions and just force SSE.
CXXFLAGS="-msse"
post_install() {
mv ${DESTDIR}/usr/lib/darktable/libdarktable.so ${DESTDIR}/usr/lib/
}