Patch to fix compilation on FreeBSD w/ -O2 or stronger optimisations
Andy Fawcett
andy at athame.co.uk
Wed Aug 11 18:48:35 BST 2004
Hi,
FreeBSD PR 70011 (http://www.freebsd.org/cgi/query-pr.cgi?pr=70011) is a
report of breakage in kdemultimedia/mpeglib for 3.2.3 when building
with gcc 3.4.x. The Problem Report includes a patch.
The KDE/FreeBSD team have confirmed the problem exists, and still exists
in HEAD and the 3.3 Branch, and that the patch fixes the problem for
us.
Okay to commit?
A.
--- mpeglib/lib/util/render/dither2YUV/rgb2yuvdefs.h.orig
+++ mpeglib/lib/util/render/dither2YUV/rgb2yuvdefs.h
@@ -20,6 +20,9 @@
/* gcc 3.3.1 and later optimise the "not used" (only in asm code)
symbols away. So we need to mark them as used. */
+#if defined(__GNUC_PREREQ__) && !defined(__GNUC_PREREQ)
+#define __GNUC_PREREQ __GNUC_PREREQ__
+#endif
#ifdef __GNUC_PREREQ
#if __GNUC_PREREQ (3,1)
# define __attribute_used__ __attribute__ ((__used__))
--
Andy Fawcett | andy at athame.co.uk
| tap at kde.org
"In an open world without walls and fences, | tap at lspace.org
we wouldn't need Windows and Gates." -- anon | tap at fruitsalad.org
More information about the kde-core-devel
mailing list