summaryrefslogtreecommitdiff
path: root/databases/mysql51-client
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2010-04-08 15:31:55 +0000
committertaca <taca@pkgsrc.org>2010-04-08 15:31:55 +0000
commite7e2c9fef9828a3c728793a9355f5122de1522c3 (patch)
tree0f6f0088a76a679a477722d4fa5fd55e8ec009fe /databases/mysql51-client
parentbc87a9a353455afcf1977e8e1fc5408e9dfe8024 (diff)
downloadpkgsrc-e7e2c9fef9828a3c728793a9355f5122de1522c3.tar.gz
Fix build problem on NetBSD except current.
Explicitly specify CFLAGS on NetBSD/i386 and should fix PR pkg/43108.
Diffstat (limited to 'databases/mysql51-client')
-rw-r--r--databases/mysql51-client/Makefile.common11
1 files changed, 10 insertions, 1 deletions
diff --git a/databases/mysql51-client/Makefile.common b/databases/mysql51-client/Makefile.common
index d1ece282a5c..21bfe6cfe2a 100644
--- a/databases/mysql51-client/Makefile.common
+++ b/databases/mysql51-client/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.3 2010/03/21 14:39:27 taca Exp $
+# $NetBSD: Makefile.common,v 1.4 2010/04/08 15:31:55 taca Exp $
#
# used by databases/mysql51-client/Makefile
# used by databases/mysql51-server/Makefile
@@ -73,6 +73,15 @@ CONFIGURE_ARGS+= --with-extra-charsets=${MYSQL_EXTRA_CHARSET:Q}
CONFIGURE_ARGS+= --enable-assembler
.endif
+#
+# MySQL 5.1 depends on builtin functions which enabled with i486 and
+# later with GCC.
+#
+.if ${OPSYS} == "NetBSD" && !empty(MACHINE_ARCH:Mi386)
+GNU_ARCH.i386= i486
+CFLAGS+= -march=i486
+.endif
+
CONFIGURE_ENV+= mysql_cv_compress="yes"
CPPFLAGS+= -Dunix