source: scripts/untested/blfs-patches/libmpeg3-1.5.4-gcc34-1.patch@ f118837

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since f118837 was 617118d, checked in by Jim Gifford <clfs@…>, 19 years ago

r561@server (orig r559): root | 2005-06-05 02:38:49 -0700
Fixed Directory Structure

  • Property mode set to 100644
File size: 2.5 KB
RevLine 
[617118d]1Submitted By: Jeremy Utley (jeremy@linuxfromscratch.org)
2Date: 2004-05-20
3Initial Package Version: 1.5.4
4Upstream Status: Not Submitted
5Origin: Self Created
6Description: Fixes syntax issues with GCC 3.4
7
8$LastChangedBy: randy $
9$Date: 2004-08-22 09:47:08 -0600 (Sun, 22 Aug 2004) $
10
11diff -uNr libmpeg3-1.5.4/video/output.c
12libmpeg3-1.5.4.jbit/video/output.c
13--- libmpeg3-1.5.4/video/output.c 2003-11-07 13:32:32.000000000 -0800
14+++ libmpeg3-1.5.4.jbit/video/output.c 2004-04-13 12:54:53.756934515 -0700
15@@ -1062,3 +1062,39 @@
16 /* Not used */
17 return 0;
18 }
19+
20+#ifdef HAVE_MMX
21+/*
22+ Make sure that these vars get linked
23+ For some reason gcc3.4 doesn't link them
24+ There's gotta be a better way to do this, this is just a quick hack
25+*/
26+void ___jbit_hack()
27+{
28+ void *foo;
29+ foo = &mpeg3_MMX_0;
30+ foo = mpeg3_MMX_10w;
31+ foo = mpeg3_MMX_80w;
32+ foo = mpeg3_MMX_00FFw;
33+ foo = mpeg3_MMX_Ublucoeff;
34+ foo = mpeg3_MMX_Vredcoeff;
35+ foo = mpeg3_MMX_Ugrncoeff;
36+ foo = mpeg3_MMX_Vgrncoeff;
37+ foo = mpeg3_MMX_Ycoeff;
38+ foo = mpeg3_MMX_redmask;
39+ foo = mpeg3_MMX_grnmask;
40+ foo = mpeg3_601_to_rgb;
41+
42+ foo = &mpeg3_MMX_U_80;
43+ foo = &mpeg3_MMX_V_80;
44+ foo = &mpeg3_MMX_U_COEF;
45+ foo = &mpeg3_MMX_V_COEF;
46+ foo = &mpeg3_MMX_601_Y_COEF;
47+ foo = &mpeg3_MMX_601_Y_DIFF;
48+
49+ foo = &mpeg3_MMX_U_80_RGB;
50+ foo = &mpeg3_MMX_V_80_RGB;
51+ foo = &mpeg3_MMX_U_COEF_RGB;
52+ foo = &mpeg3_MMX_V_COEF_RGB;
53+}
54+#endif
55diff -uNr libmpeg3-1.5.4/video/reconstruct.c libmpeg3-1.5.4.jbit/video/reconstruct.c
56--- libmpeg3-1.5.4/video/reconstruct.c 2003-10-14 00:54:14.000000000 -0700
57+++ libmpeg3-1.5.4.jbit/video/reconstruct.c 2004-04-13 12:57:23.280261795 -0700
58@@ -1286,4 +1286,16 @@
59 return 0;
60 }
61
62-
63+#ifdef HAVE_MMX
64+/*
65+ Make sure that these vars get linked
66+ For some reason gcc3.4 doesn't link them
67+ There's gotta be a better way to do this, this is just a quick hack
68+*/
69+void ___jbit_hack_reconstruct()
70+{
71+ void *foo;
72+ foo = &MASK_AND;
73+ foo = &ADD_1;
74+}
75+#endif
76diff -uNr libmpeg3-1.5.4/video/slice.c libmpeg3-1.5.4.jbit/video/slice.c
77--- libmpeg3-1.5.4/video/slice.c 2003-10-14 00:54:14.000000000 -0700
78+++ libmpeg3-1.5.4.jbit/video/slice.c 2004-04-13 12:55:54.710884733 -0700
79@@ -706,3 +706,16 @@
80 pthread_mutex_destroy(&(slice->output_lock));
81 return 0;
82 }
83+
84+#ifdef HAVE_MMX
85+/*
86+ Make sure that these vars get linked
87+ For some reason gcc3.4 doesn't link them
88+ There's gotta be a better way to do this, this is just a quick hack
89+*/
90+void ___jbit_hack_slice()
91+{
92+ void *foo;
93+ foo = &MMX_128;
94+}
95+#endif
Note: See TracBrowser for help on using the repository browser.