diff options
author | jschauma <jschauma> | 2003-11-09 02:23:18 +0000 |
---|---|---|
committer | jschauma <jschauma> | 2003-11-09 02:23:18 +0000 |
commit | dd5606f7cc98d184108ce03affbbdb68449cf8d8 (patch) | |
tree | 20080f3659e40910f49ce9fd4a76ae5b583992e4 /graphics/glut | |
parent | 0a20c62403ec0bab513cbb8be9f0830a17189b89 (diff) | |
download | pkgsrc-dd5606f7cc98d184108ce03affbbdb68449cf8d8.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/glut')
-rw-r--r-- | graphics/glut/Makefile | 3 | ||||
-rw-r--r-- | graphics/glut/distinfo | 3 | ||||
-rw-r--r-- | graphics/glut/patches/patch-ab | 13 |
3 files changed, 17 insertions, 2 deletions
diff --git a/graphics/glut/Makefile b/graphics/glut/Makefile index 1bdcb6632a2..2040843cbfc 100644 --- a/graphics/glut/Makefile +++ b/graphics/glut/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.20 2003/09/18 16:25:12 jmmv Exp $ +# $NetBSD: Makefile,v 1.21 2003/11/09 02:23:18 jschauma Exp $ PKGNAME= ${DISTNAME:S/MesaLib/glut/} +PKGREVISION= 1 DISTFILES= ${DISTNAME}${EXTRACT_SUFX} DISTFILES+= ${DISTNAME:S/MesaLib/MesaDemos/}${EXTRACT_SUFX} WRKSRC= ${WRKDIR}/${DISTNAME:S/Lib//} diff --git a/graphics/glut/distinfo b/graphics/glut/distinfo index 2e3bf036810..c6d6dba5a15 100644 --- a/graphics/glut/distinfo +++ b/graphics/glut/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.15 2003/09/29 21:30:28 jschauma Exp $ +$NetBSD: distinfo,v 1.16 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 (MesaDemos-5.0.2.tar.bz2) = 012d635c3e39dfa391b1183425f0630b1f428985 Size (MesaDemos-5.0.2.tar.bz2) = 896368 bytes SHA1 (patch-aa) = d7a7dab7da7068c814a28b996bb3af6c24b48801 +SHA1 (patch-ab) = 807b07b1505735f23dd4148c8c838df08af6333e diff --git a/graphics/glut/patches/patch-ab b/graphics/glut/patches/patch-ab new file mode 100644 index 00000000000..b36f8eae0cd --- /dev/null +++ b/graphics/glut/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.1 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 |