summaryrefslogtreecommitdiff
path: root/devel/gdbus-codegen/hacks.mk
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2013-08-17 04:59:07 +0000
committerobache <obache@pkgsrc.org>2013-08-17 04:59:07 +0000
commit3f878734e9e0a2aab08a541ccc3a29003c29d2ec (patch)
tree75f14aaffd3368f216d2ace7990568cd7f83000e /devel/gdbus-codegen/hacks.mk
parent740afd5ded2b330155afe8fd487b935219967fa6 (diff)
downloadpkgsrc-3f878734e9e0a2aab08a541ccc3a29003c29d2ec.tar.gz
i486 hack is required, same as base glib2 package.
Diffstat (limited to 'devel/gdbus-codegen/hacks.mk')
-rw-r--r--devel/gdbus-codegen/hacks.mk11
1 files changed, 10 insertions, 1 deletions
diff --git a/devel/gdbus-codegen/hacks.mk b/devel/gdbus-codegen/hacks.mk
index 63792e6ab2d..c38552e8dd2 100644
--- a/devel/gdbus-codegen/hacks.mk
+++ b/devel/gdbus-codegen/hacks.mk
@@ -1,4 +1,4 @@
-# $NetBSD: hacks.mk,v 1.2 2013/03/18 14:01:24 jperkin Exp $
+# $NetBSD: hacks.mk,v 1.3 2013/08/17 04:59:07 obache Exp $
.if !defined(GDBUS_CODEGEN_HACKS_MK)
GDBUS_CODEGEN_HACKS_MK= # defined
@@ -17,4 +17,13 @@ SUBST_SED.iconv= -e 's,libiconv_open,iconv_open,g'
. endif
.endif
+#
+# GLib2>=2.36 depends on builtin functions which enabled with i486 and
+# later with GCC.
+#
+.if !empty(MACHINE_PLATFORM:MNetBSD-[0-5]*-i386)
+GNU_ARCH.i386= i486
+CFLAGS+= -march=i486
+.endif
+
.endif