diff options
author | fhajny <fhajny@pkgsrc.org> | 2012-06-08 12:18:42 +0000 |
---|---|---|
committer | fhajny <fhajny@pkgsrc.org> | 2012-06-08 12:18:42 +0000 |
commit | 1fa4418d4bfded0ead8abed69136a0bce577eee0 (patch) | |
tree | eafbda069761cedd85e5741f59d6483432db835f /databases | |
parent | beff7c99ea0982b1e7530e3e101147e11fd3abab (diff) | |
download | pkgsrc-1fa4418d4bfded0ead8abed69136a0bce577eee0.tar.gz |
Fix build on SunOS when optimization of -O2 or greater is used.
Diffstat (limited to 'databases')
-rw-r--r-- | databases/freetds/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/databases/freetds/Makefile b/databases/freetds/Makefile index 3a6fcea913a..7c9e2d4a862 100644 --- a/databases/freetds/Makefile +++ b/databases/freetds/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.46 2012/04/15 22:00:59 wiz Exp $ +# $NetBSD: Makefile,v 1.47 2012/06/08 12:18:42 fhajny Exp $ DISTNAME= freetds-0.91 CATEGORIES= databases @@ -21,6 +21,13 @@ CONFIGURE_ARGS+= --with-tdsver=7.0 # no thread-safe resolver functions on NetBSD CONFIGURE_ARGS+= --disable-threadsafe +.include "../../mk/bsd.prefs.mk" + +# Fails to build the shared lib on SunOS with -O2 or greater +.if ${OPSYS} == "SunOS" +BUILDLINK_TRANSFORM+= rm:-O[23] +.endif + EGDIR= ${PREFIX}/share/examples/freetds CONF_FILES+= ${EGDIR}/freetds.conf ${PKG_SYSCONFDIR}/freetds.conf CONF_FILES+= ${EGDIR}/locales.conf ${PKG_SYSCONFDIR}/locales.conf |