summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorhauke <hauke@pkgsrc.org>2015-12-04 11:32:40 +0000
committerhauke <hauke@pkgsrc.org>2015-12-04 11:32:40 +0000
commitdce7063e168a7f63f3e6d855ead4241da3bc5b8b (patch)
tree918442f5fefd67bf10c012b049b1a5c1902ed872 /devel
parent73cab3434125c817837b642a85da09ea13e00be8 (diff)
downloadpkgsrc-dce7063e168a7f63f3e6d855ead4241da3bc5b8b.tar.gz
The built-in GLib wants __sync_bool_compare_and_swap_4, so compile for
i486 on NetBSD < 6
Diffstat (limited to 'devel')
-rw-r--r--devel/pkg-config/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/devel/pkg-config/Makefile b/devel/pkg-config/Makefile
index 1f019b319b0..e8430b13fc8 100644
--- a/devel/pkg-config/Makefile
+++ b/devel/pkg-config/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.33 2015/10/19 17:26:44 jperkin Exp $
+# $NetBSD: Makefile,v 1.34 2015/12/04 11:32:40 hauke Exp $
DISTNAME= pkg-config-0.29
CATEGORIES= devel
@@ -26,6 +26,10 @@ CONFIGURE_ARGS+= --cache-file=/dev/null
.endif
.if ${OPSYS} == "NetBSD"
+.if ${MACHINE_ARCH} == "i386" && !empty(OS_VERSION:M[12345].*)
+# Built-in GLib wants __sync_bool_compare_and_swap_4
+CFLAGS+= -march=i486
+.endif
post-configure:
cd ${WRKSRC}/glib; \
${GREP} -v HAVE_DTRACE config.h >config.h.new; \