diff options
author | jschauma <jschauma@pkgsrc.org> | 2003-11-09 02:23:18 +0000 |
---|---|---|
committer | jschauma <jschauma@pkgsrc.org> | 2003-11-09 02:23:18 +0000 |
commit | 6e2383474d3f801fb12ca62a7092c3ba0ab0111c (patch) | |
tree | 20080f3659e40910f49ce9fd4a76ae5b583992e4 /graphics/MesaLib | |
parent | 2ae0acdd1ad1680273ac89e04f0c60147a863420 (diff) | |
download | pkgsrc-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/MesaLib')
-rw-r--r-- | graphics/MesaLib/Makefile | 3 | ||||
-rw-r--r-- | graphics/MesaLib/distinfo | 3 | ||||
-rw-r--r-- | graphics/MesaLib/patches/patch-ad | 13 |
3 files changed, 17 insertions, 2 deletions
diff --git a/graphics/MesaLib/Makefile b/graphics/MesaLib/Makefile index 3c779e09b36..68aa9730e83 100644 --- a/graphics/MesaLib/Makefile +++ b/graphics/MesaLib/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.24 2003/09/29 21:30:28 jschauma Exp $ +# $NetBSD: Makefile,v 1.25 2003/11/09 02:23:18 jschauma Exp $ PKGNAME= MesaLib-${MESA_VERSION} +PKGREVISION= 1 WRKSRC= ${WRKDIR}/${DISTNAME:S/Lib//} MAINTAINER= rh@NetBSD.org COMMENT= Graphics library similar to SGI's OpenGL diff --git a/graphics/MesaLib/distinfo b/graphics/MesaLib/distinfo index ddb0997973f..64fcda34a1e 100644 --- a/graphics/MesaLib/distinfo +++ b/graphics/MesaLib/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.13 2003/09/29 21:30:28 jschauma Exp $ +$NetBSD: distinfo,v 1.14 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) = 7fa63dca0edfc41812b5432cbabd861ec52cec33 SHA1 (patch-ac) = 30d3f08c2d9bbfe648a2ed2cbfade6c30a7413fe +SHA1 (patch-ad) = 807b07b1505735f23dd4148c8c838df08af6333e diff --git a/graphics/MesaLib/patches/patch-ad b/graphics/MesaLib/patches/patch-ad new file mode 100644 index 00000000000..684eea5f205 --- /dev/null +++ b/graphics/MesaLib/patches/patch-ad @@ -0,0 +1,13 @@ +$NetBSD: patch-ad,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 |