summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorobache <obache>2013-04-20 09:17:32 +0000
committerobache <obache>2013-04-20 09:17:32 +0000
commitf4e1d88a5ac02fc5d47db207fb86e65e990f134b (patch)
treeeed0ab4cb907ecdac2a5bf16257c6c8d832d3569
parent6a1ac024ccc9daca4bd1f3cf421c82e7ca729fbf (diff)
downloadpkgsrc-f4e1d88a5ac02fc5d47db207fb86e65e990f134b.tar.gz
require i486 instructions
-rw-r--r--devel/glib2/hacks.mk11
1 files changed, 10 insertions, 1 deletions
diff --git a/devel/glib2/hacks.mk b/devel/glib2/hacks.mk
index 58be4ff7781..173b8d8079e 100644
--- a/devel/glib2/hacks.mk
+++ b/devel/glib2/hacks.mk
@@ -1,4 +1,4 @@
-# $NetBSD: hacks.mk,v 1.9 2013/03/18 14:01:24 jperkin Exp $
+# $NetBSD: hacks.mk,v 1.10 2013/04/20 09:17:32 obache Exp $
.if !defined(GLIB2_HACKS_MK)
GLIB2_HACKS_MK= # defined
@@ -32,4 +32,13 @@ PKG_HACKS+= sunpro-visibility
CONFIGURE_ARGS+= --disable-visibility
.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