- Make the library actually usable on gcc 3.4 systems:

/usr/local/lib/libfame.so: undefined reference to `_mmx_one'

PR:		ports/74806
Submitted by:	Hendrik Scholz <hendrik@scholz.net>
Obtained from:	http://www.linuxfromscratch.org/blfs/downloads/svn/libfame-0.9.1-gcc34-1.patch
This commit is contained in:
Pav Lucistnik 2004-12-08 19:29:09 +00:00
parent bcba0638b2
commit aa4fbca3ff
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=123481
2 changed files with 23 additions and 0 deletions

View File

@ -8,6 +8,7 @@
PORTNAME= libfame
PORTVERSION= 0.9.1
PORTREVISION= 1
CATEGORIES= multimedia
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= fame

View File

@ -0,0 +1,22 @@
--- src/half_sse.h.orig Tue Dec 7 10:24:14 2004
+++ src/half_sse.h Tue Dec 7 10:24:29 2004
@@ -19,7 +19,7 @@
*/
/**************************** half-pixel interpolation ***********************/
-static short const _mmx_one[] = { 1, 1, 1, 1 };
+const _mmx_one[] = { 1, 1, 1, 1 };
static unsigned char const _mmx_one_byte[] = {1,1,1,1,1,1,1,1};
--- src/half_mmx.h.orig Tue Dec 7 10:23:21 2004
+++ src/half_mmx.h Tue Dec 7 10:23:32 2004
@@ -18,7 +18,7 @@
*/
/**************************** half-pixel interpolation ***********************/
-static short const _mmx_one[] = { 1, 1, 1, 1 };
+const _mmx_one[] = { 1, 1, 1, 1 };
static void inline mmx_interpolate(unsigned char **ref,
int pitch,