summaryrefslogtreecommitdiff
path: root/www/firefox
diff options
context:
space:
mode:
authorryoon <ryoon>2013-08-25 01:41:08 +0000
committerryoon <ryoon>2013-08-25 01:41:08 +0000
commitd350094917aa51d3816a917df859682ae460fb7b (patch)
treec3d4e77aed1b194f6e3fac60131081d65aa086a2 /www/firefox
parentcdd795c5ac04edf143652f9d8fd52c805a86fa4e (diff)
downloadpkgsrc-d350094917aa51d3816a917df859682ae460fb7b.tar.gz
Fix NetBSD/i386 5.2 build, PR pkg/48152.
* Set -march=i486 for i386.
Diffstat (limited to 'www/firefox')
-rw-r--r--www/firefox/mozilla-common.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/www/firefox/mozilla-common.mk b/www/firefox/mozilla-common.mk
index 7ef847c03eb..f13805a367a 100644
--- a/www/firefox/mozilla-common.mk
+++ b/www/firefox/mozilla-common.mk
@@ -1,4 +1,4 @@
-# $NetBSD: mozilla-common.mk,v 1.10 2013/08/10 08:56:17 ryoon Exp $
+# $NetBSD: mozilla-common.mk,v 1.11 2013/08/25 01:41:08 ryoon Exp $
#
# common Makefile fragment for mozilla packages based on gecko 2.0.
#
@@ -17,6 +17,10 @@ UNLIMIT_RESOURCES+= datasize
# but gcc 4.5.4 of NetBSD 7 generates working binary.
.if !empty(MACHINE_PLATFORM:MNetBSD-5.*)
GCC_REQD+= 4.6
+. if ${MACHINE_ARCH} == "i386"
+# Fix for PR pkg/48152.
+CPPFLAGS+= -march=i486
+. endif
.else
GCC_REQD+= 4.5
.endif