summaryrefslogtreecommitdiff
path: root/games/supertuxkart
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2020-01-10 11:25:32 +0000
committernia <nia@pkgsrc.org>2020-01-10 11:25:32 +0000
commit042a42b98d64b6d7a2ebc28aa66a8524d399b3aa (patch)
tree9825538bced1c0f994e02de2bed94cce54d43cef /games/supertuxkart
parent24b822d0fed4bdad22df333ba14783df7b3aa687 (diff)
downloadpkgsrc-042a42b98d64b6d7a2ebc28aa66a8524d399b3aa.tar.gz
supertuxkart: Build fix: 64 bit atomic ops are required on i386
Diffstat (limited to 'games/supertuxkart')
-rw-r--r--games/supertuxkart/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/games/supertuxkart/Makefile b/games/supertuxkart/Makefile
index 5947b0cf54f..8d3cbcf9f64 100644
--- a/games/supertuxkart/Makefile
+++ b/games/supertuxkart/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.29 2019/09/01 11:44:19 nia Exp $
+# $NetBSD: Makefile,v 1.30 2020/01/10 11:25:32 nia Exp $
VERSION= 1.0
DISTNAME= supertuxkart-${VERSION}-src
@@ -26,6 +26,11 @@ CMAKE_ARGS+= -DENABLE_WAYLAND_DEVICE=OFF
.include "../../mk/bsd.prefs.mk"
+.if ${MACHINE_ARCH} == "i386"
+# 64 bit atomic ops are required
+CXXFLAGS+= -march=i586
+.endif
+
.include "../../archivers/bzip2/buildlink3.mk"
.include "../../audio/libvorbis/buildlink3.mk"
.include "../../audio/openal-soft/buildlink3.mk"