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 <filip%joyent.com@localhost>
Pushed By:	fhajny
Date:		Thu Mar 16 17:09:34 2017 +0000
Changeset:	006d4822de71882220b046b97b36a895865ee90d

Modified Files:
	varnish/Makefile.common

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

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=006d4822de71882220b046b97b36a895865ee90d

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

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

diffs:
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/compiler.mk"
+
+# Fixes build on at least SunOS/i386
+# See https://github.com/varnishcache/varnish-cache/issues/1875
+.if !empty(CC_VERSION:Mgcc*)
+CFLAGS+=		-fexcess-precision=standard
+.endif
+
 INSTALL_MAKE_FLAGS+=	sysconfdir=${PREFIX}/share/examples/varnish
 
 # not signed/unsigned char safe


Home | Main Index | Thread Index | Old Index