pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Fix build with GCC on (some) 32bit platforms

Module Name:	pkgsrc-wip
Committed By:	Filip Hajny <>
Pushed By:	fhajny
Date:		Thu Mar 16 17:09:34 2017 +0000
Changeset:	006d4822de71882220b046b97b36a895865ee90d

Modified Files:

Log Message:
Fix build with GCC on (some) 32bit platforms

To see a diff of this commit:;a=commitdiff;h=006d4822de71882220b046b97b36a895865ee90d

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

 varnish/Makefile.common | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/varnish/Makefile.common b/varnish/Makefile.common
index 75fe9529ec..b5d3381079 100644
--- a/varnish/Makefile.common
+++ b/varnish/Makefile.common
@@ -52,6 +52,14 @@ CONFIGURE_ARGS+=	--with-rst2man=${PREFIX}/bin/rst2man-${PYVERSSUFFIX}.py
 # Explicitly disable epoll on illumos, provided for Linux compat only.
 CONFIGURE_ARGS.SunOS+=	--disable-epoll
+.include "../../mk/"
+# Fixes build on at least SunOS/i386
+# See
+.if !empty(CC_VERSION:Mgcc*)
+CFLAGS+=		-fexcess-precision=standard
 INSTALL_MAKE_FLAGS+=	sysconfdir=${PREFIX}/share/examples/varnish
 # not signed/unsigned char safe

Home | Main Index | Thread Index | Old Index