aboutsummaryrefslogtreecommitdiff
path: root/package/libatomic_ops
diff options
context:
space:
mode:
Diffstat (limited to 'package/libatomic_ops')
-rw-r--r--package/libatomic_ops/libatomic_ops.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/libatomic_ops/libatomic_ops.mk b/package/libatomic_ops/libatomic_ops.mk
index 5f698c4f58..fd45726750 100644
--- a/package/libatomic_ops/libatomic_ops.mk
+++ b/package/libatomic_ops/libatomic_ops.mk
@@ -19,5 +19,9 @@ LIBATOMIC_OPS_LICENSE_FILES = doc/LICENSING.txt COPYING
LIBATOMIC_OPS_INSTALL_STAGING = YES
+ifeq ($(BR2_sparc_v8)$(BR2_sparc_leon3),y)
+LIBATOMIC_OPS_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -DAO_NO_SPARC_V9"
+endif
+
$(eval $(autotools-package))
$(eval $(host-autotools-package))