summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorleot <leot@pkgsrc.org>2016-03-22 20:10:15 +0000
committerleot <leot@pkgsrc.org>2016-03-22 20:10:15 +0000
commit3a5ff6dbc3c74d371f1a1390ced45372931b2cc7 (patch)
tree74f411ff99a3970d2ae49439d0f326458d5f496d /www
parentc1494c69b804367d508f1a69e4e035242815b969 (diff)
downloadpkgsrc-3a5ff6dbc3c74d371f1a1390ced45372931b2cc7.tar.gz
Add www/webkit-gtk/hacks.mk also to www/webkit24-gtk* that from 2.4.10 is
affected by the same problem. Should fix build issues on NetBSD/i386 (noticed via tnn@'s bulk builds).
Diffstat (limited to 'www')
-rw-r--r--www/webkit24-gtk/hacks.mk16
-rw-r--r--www/webkit24-gtk3/hacks.mk16
2 files changed, 32 insertions, 0 deletions
diff --git a/www/webkit24-gtk/hacks.mk b/www/webkit24-gtk/hacks.mk
new file mode 100644
index 00000000000..1ef8b3c1715
--- /dev/null
+++ b/www/webkit24-gtk/hacks.mk
@@ -0,0 +1,16 @@
+# $NetBSD: hacks.mk,v 1.1 2016/03/22 20:10:15 leot Exp $
+
+.if !defined(WEBKIT24_GTK_HACKS_MK)
+WEBKIT24_GTK_HACKS_MK= defined
+
+# [Sun Mar 20 12:21:27 CET 2016 : leot]
+# On i386 archs -latomic is added during the build phase and lead to a failure
+# when linking various binaries/libraries.
+# Forcing -march=i586 (or better) avoids that (i[56]86 provide required
+# 64-bit compare-and-swap instruction).
+.if ${MACHINE_ARCH} == "i386"
+PKG_HACKS+= i386-atomicops
+CXXFLAGS+= -march=i586
+.endif
+
+.endif # WEBKIT24_GTK_HACKS_MK
diff --git a/www/webkit24-gtk3/hacks.mk b/www/webkit24-gtk3/hacks.mk
new file mode 100644
index 00000000000..bc8e2cfabf1
--- /dev/null
+++ b/www/webkit24-gtk3/hacks.mk
@@ -0,0 +1,16 @@
+# $NetBSD: hacks.mk,v 1.1 2016/03/22 20:10:15 leot Exp $
+
+.if !defined(WEBKIT24_GTK3_HACKS_MK)
+WEBKIT24_GTK3_HACKS_MK= defined
+
+# [Sun Mar 20 12:21:27 CET 2016 : leot]
+# On i386 archs -latomic is added during the build phase and lead to a failure
+# when linking various binaries/libraries.
+# Forcing -march=i586 (or better) avoids that (i[56]86 provide required
+# 64-bit compare-and-swap instruction).
+.if ${MACHINE_ARCH} == "i386"
+PKG_HACKS+= i386-atomicops
+CXXFLAGS+= -march=i586
+.endif
+
+.endif # WEBKIT24_GTK3_HACKS_MK