summaryrefslogtreecommitdiff
path: root/databases/mysql51-client/Makefile.common
diff options
context:
space:
mode:
authorwiz <wiz>2010-03-16 19:24:54 +0000
committerwiz <wiz>2010-03-16 19:24:54 +0000
commitcd4027e796814df57ccceb933a4ccd86401b4cd0 (patch)
treeffe7fa6aa40797da212a6bc206489ccd11b93a85 /databases/mysql51-client/Makefile.common
parent584e3de303548f9e49e12a079a6db3c8acca765f (diff)
downloadpkgsrc-cd4027e796814df57ccceb933a4ccd86401b4cd0.tar.gz
Enable PIC compilation, needed for working mysql-embedded support
(and perhaps also on Solaris). Bump PKGREVISION. Ok taca@
Diffstat (limited to 'databases/mysql51-client/Makefile.common')
-rw-r--r--databases/mysql51-client/Makefile.common5
1 files changed, 4 insertions, 1 deletions
diff --git a/databases/mysql51-client/Makefile.common b/databases/mysql51-client/Makefile.common
index 50c57fd6953..9d4bf2b9e67 100644
--- a/databases/mysql51-client/Makefile.common
+++ b/databases/mysql51-client/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.1.1.1 2010/03/04 16:27:18 taca Exp $
+# $NetBSD: Makefile.common,v 1.2 2010/03/16 19:24:54 wiz Exp $
#
# used by databases/mysql51-client/Makefile
# used by databases/mysql51-server/Makefile
@@ -80,6 +80,9 @@ CONFIGURE_ENV+= mysql_cv_compress="yes"
CPPFLAGS+= -Dunix
CFLAGS+= -DUSE_OLD_FUNCTIONS # 3.23.x compat
+CFLAGS+= -fPIC -DPIC
+CXXFLAGS+= -fPIC -DPIC
+
# force HAVE_CURSES_H on Solaris since the configure script is broken
# and does not properly detect this, breaking the build later on.
.if ${OPSYS} == "SunOS"