summaryrefslogtreecommitdiff
path: root/databases/mysql51-client
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2010-04-30 06:03:36 +0000
committerobache <obache@pkgsrc.org>2010-04-30 06:03:36 +0000
commitb0264c9be8ca33da56eb238fdc56c6b880601f41 (patch)
tree4664a826c3cb568f38086ee3d9c8824d3476204b /databases/mysql51-client
parent2dc3922299950df7925f988009f95b5a01598998 (diff)
downloadpkgsrc-b0264c9be8ca33da56eb238fdc56c6b880601f41.tar.gz
Interix GNU cc doesn't support `-fPIC'.
Diffstat (limited to 'databases/mysql51-client')
-rw-r--r--databases/mysql51-client/Makefile.common4
1 files changed, 3 insertions, 1 deletions
diff --git a/databases/mysql51-client/Makefile.common b/databases/mysql51-client/Makefile.common
index 3183debe2db..a37e84029db 100644
--- a/databases/mysql51-client/Makefile.common
+++ b/databases/mysql51-client/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.6 2010/04/24 15:59:23 taca Exp $
+# $NetBSD: Makefile.common,v 1.7 2010/04/30 06:03:36 obache Exp $
#
# used by databases/mysql51-client/Makefile
# used by databases/mysql51-server/Makefile
@@ -87,8 +87,10 @@ CONFIGURE_ENV+= mysql_cv_compress="yes"
CPPFLAGS+= -Dunix
CFLAGS+= -DUSE_OLD_FUNCTIONS # 3.23.x compat
+.if ${OPSYS} != "Interix"
CFLAGS+= -fPIC -DPIC
CXXFLAGS+= -fPIC -DPIC
+.endif
# force HAVE_CURSES_H on Solaris since the configure script is broken
# and does not properly detect this, breaking the build later on.