]> git.pld-linux.org Git - packages/cinelerra.git/blame - cinelerra-guicast_bootstrap.patch
- release 2
[packages/cinelerra.git] / cinelerra-guicast_bootstrap.patch
CommitLineData
b7760deb 1diff -dur cinelerra-2.0.orig/guicast/Makefile cinelerra-2.0/guicast/Makefile
2--- cinelerra-2.0.orig/guicast/Makefile 2004-07-06 06:32:42.000000000 +0200
3+++ cinelerra-2.0/guicast/Makefile 2004-09-13 11:14:21.672141990 +0200
4f5b6db8
JK
4@@ -24,6 +24,17 @@
5 BOOTSTRAPFLAGS := -DBOOTSTRAP="\"objcopy -B i386 -I binary -O elf64-x86-64\""
6 endif
7
8+ifeq ($(OBJDIR), alpha)
556a92c5 9+BOOTSTRAPFLAGS := -DBOOTSTRAP="\"objcopy -B alpha -I binary -O elf64-alpha\""
4f5b6db8
JK
10+endif
11+
12+ifeq ($(OBJDIR), ppc)
556a92c5 13+BOOTSTRAPFLAGS := -DBOOTSTRAP="\"objcopy -B powerpc -I binary -O elf32-powerpc\""
4f5b6db8
JK
14+endif
15+
16+ifeq ($(OBJDIR), sparc)
556a92c5 17+BOOTSTRAPFLAGS := -DBOOTSTRAP="\"objcopy -B sparc -I binary -O elf32-sparc\""
4f5b6db8
JK
18+endif
19
20 $(shell sh -c 'if ! test -d $(OBJDIR)\; then mkdir $(OBJDIR)\; fi' )
21
b7760deb 22diff -dur cinelerra-2.0.orig/guicast/bootstrap.c cinelerra-2.0/guicast/bootstrap.c
23--- cinelerra-2.0.orig/guicast/bootstrap.c 2005-04-20 20:15:14.000000000 +0000
24+++ cinelerra-2.0/guicast/bootstrap.c 2006-06-13 18:16:44.413604791 +0000
25@@ -41,7 +41,7 @@
26
27 *buffer_size += strlen(string) + 1;
28
29- *(int*)(buffer + *buffer_size) = data_offset;
50bf3713 30+ memcpy((int*)(buffer + *buffer_size), &data_offset, sizeof(int));
b7760deb 31 *buffer_size += sizeof(int);
32 }
33
34@@ -152,7 +152,7 @@
35
36 // Run system command on it
37 sprintf(system_command, "%s %s %s", BOOTSTRAP, temp_path, argv[1]);
38- system(system_command);
39+ return system(system_command);
40 }
41
42
This page took 0.08657 seconds and 4 git commands to generate.