From caba8e3b15a1df3335ef5aedd8dd6f560ef7702e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Fri, 26 May 2017 10:56:12 +0200 Subject: [PATCH] libGL: fix gcc7 build --- srcpkgs/libGL/template | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/srcpkgs/libGL/template b/srcpkgs/libGL/template index 8c7a26f0762..4bfbdee0c29 100644 --- a/srcpkgs/libGL/template +++ b/srcpkgs/libGL/template @@ -59,6 +59,15 @@ armv[67]l*) configure_args+=" --disable-xa" ;; esac +if [ "$XBPS_GCC_VERSION_MAJOR" -ge 7 ]; then + case "$XBPS_TARGET_MACHINE" in + armv6*) + # Enable MISSING_64BIT_ATOMICS for armv6* + CFLAGS+=" -DMISSING_64BIT_ATOMICS=1" + CXXFLAGS+=" -DMISSING_64BIT_ATOMICS=1" + ;; + esac +fi # -devel must be the last one for proper order. subpackages+=" MesaLib-devel"