summaryrefslogtreecommitdiff
path: root/graphics/glu
diff options
context:
space:
mode:
authorjschauma <jschauma@pkgsrc.org>2003-11-09 02:23:18 +0000
committerjschauma <jschauma@pkgsrc.org>2003-11-09 02:23:18 +0000
commit6e2383474d3f801fb12ca62a7092c3ba0ab0111c (patch)
tree20080f3659e40910f49ce9fd4a76ae5b583992e4 /graphics/glu
parent2ae0acdd1ad1680273ac89e04f0c60147a863420 (diff)
downloadpkgsrc-6e2383474d3f801fb12ca62a7092c3ba0ab0111c.tar.gz
Patch Mesa's Makefile to use '-fno-strict-aliasing' rather than '-fstrict-aliasing',
as the code contains unsafe use of aliased pointers. As suggested by tls@ in PR pkg/23381, closing said PR.
Diffstat (limited to 'graphics/glu')
-rw-r--r--graphics/glu/Makefile3
-rw-r--r--graphics/glu/distinfo3
-rw-r--r--graphics/glu/patches/patch-aa13
3 files changed, 17 insertions, 2 deletions
diff --git a/graphics/glu/Makefile b/graphics/glu/Makefile
index 55305d38369..859ab598eb5 100644
--- a/graphics/glu/Makefile
+++ b/graphics/glu/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.19 2003/09/18 16:25:11 jmmv Exp $
+# $NetBSD: Makefile,v 1.20 2003/11/09 02:23:18 jschauma Exp $
PKGNAME= ${DISTNAME:C/MesaLib/glu/}
+PKGREVISION= 1
WRKSRC= ${WRKDIR}/${DISTNAME:C/Lib//}
MAINTAINER= rh@NetBSD.org
COMMENT= GLU polygon tesselation facility for Mesa
diff --git a/graphics/glu/distinfo b/graphics/glu/distinfo
index be18e85f458..2a97818deb4 100644
--- a/graphics/glu/distinfo
+++ b/graphics/glu/distinfo
@@ -1,4 +1,5 @@
-$NetBSD: distinfo,v 1.12 2003/09/29 21:30:28 jschauma Exp $
+$NetBSD: distinfo,v 1.13 2003/11/09 02:23:18 jschauma Exp $
SHA1 (MesaLib-5.0.2.tar.bz2) = 948b9e1b11d1341a4230a081469f4636f702ebdc
Size (MesaLib-5.0.2.tar.bz2) = 1704278 bytes
+SHA1 (patch-aa) = 807b07b1505735f23dd4148c8c838df08af6333e
diff --git a/graphics/glu/patches/patch-aa b/graphics/glu/patches/patch-aa
new file mode 100644
index 00000000000..de4a2cc7cd3
--- /dev/null
+++ b/graphics/glu/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.10 2003/11/09 02:23:18 jschauma Exp $
+
+--- configure.orig 2003-11-08 19:10:36.000000000 -0500
++++ configure 2003-11-08 19:10:53.000000000 -0500
+@@ -7121,7 +7121,7 @@
+ if test "x$enable_optim" = xyes; then
+ if test "x$enable_debug" = xno && test "x$enable_prof" = xno; then
+ if test "x$GCC" = xyes; then
+- CFLAGS="$CFLAGS -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fstrict-aliasing"
++ CFLAGS="$CFLAGS -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fno-strict-aliasing"
+ case "$host" in
+ i*86-*-*) CFLAGS="$CFLAGS -malign-loops=2 -malign-jumps=2 -malign-functions=2";;
+ esac