Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
a36cc9f8
Commit
a36cc9f8
authored
Apr 06, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x264 patch update for cross compilation.
parent
76671a0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
36 deletions
+18
-36
extras/contrib/src/Patches/x264-svn-win32.patch
extras/contrib/src/Patches/x264-svn-win32.patch
+18
-36
No files found.
extras/contrib/src/Patches/x264-svn-win32.patch
View file @
a36cc9f8
Index: configure
===================================================================
--- configure (revision 736)
+++ configure (working copy)
@@ -338,6 +338,7 @@
--- configure 2008-04-06 09:07:25.000000000 +0200
+++ configure 2008-04-06 09:10:52.000000000 +0200
@@ -343,6 +343,7 @@
# autodetect options that weren't forced nor disabled
libpthread=""
...
...
@@ -10,16 +8,16 @@ Index: configure
if test "$pthread" = "auto" ; then
pthread="no"
case $SYS in
@@ -3
45,16 +346,18
@@
@@ -3
50,13 +351,13
@@
pthread="yes"
;;
MINGW
|CYGWIN
)
MINGW)
- if cc_check pthread.h -lpthread "pthread_create(0,0,0,0);" ; then
+ if cc_check pthread.h -lpthread "pthread_create(0,0,0,0); pthread_num_processors_np();" ; then
pthread="yes"
libpthread="-lpthread"
- elif cc_check pthread.h -lpthreadGC2 "pthread_create(0,0,0,0);" ; then
+ elif cc_check pthread.h -lpthreadGC2 "pthread_create(0,0,0,0); pthread_num_processors_np();" ; then
+ elif cc_check pthread.h -lpthreadGC2 "pthread_create(0,0,0,0); pthread_num_processors_np();
" ; then
pthread="yes"
libpthread="-lpthreadGC2"
- elif cc_check pthread.h "-lpthreadGC2 -lwsock32 -DPTW32_STATIC_LIB" "pthread_create(0,0,0,0);" ; then
...
...
@@ -27,12 +25,7 @@ Index: configure
pthread="yes"
libpthread="-lpthreadGC2 -lwsock32"
CFLAGS="$CFLAGS -DPTW32_STATIC_LIB"
+ extradef="-DPTW32_STATIC_LIB"
+
fi
;;
*)
@@ -438,6 +441,10 @@
@@ -443,6 +444,10 @@
ASFLAGS=$ASFLAGS
GTK=$gtk
EXE=$EXE
...
...
@@ -43,7 +36,7 @@ Index: configure
VIS=$vis
HAVE_GETOPT_LONG=$HAVE_GETOPT_LONG
DEVNULL=$DEVNULL
@@ -4
80,7 +487
,7 @@
@@ -4
95,7 +500
,7 @@
Description: H.264 (MPEG4 AVC) encoder library
Version: $(grep POINTVER < config.h | sed -e 's/.* "//; s/".*//')
Libs: $pclibs
...
...
@@ -52,11 +45,9 @@ Index: configure
EOF
Index: Makefile
===================================================================
--- Makefile (revision 736)
+++ Makefile (working copy)
@@ -74,8 +74,8 @@
--- Makefile 2008-04-06 09:07:25.000000000 +0200
+++ Makefile 2008-04-06 09:11:39.000000000 +0200
@@ -72,8 +72,8 @@
default: $(DEP) x264$(EXE)
libx264.a: .depend $(OBJS) $(OBJASM)
...
...
@@ -66,8 +57,8 @@ Index: Makefile
+ $(RANLIB) libx264.a
$(SONAME): .depend $(OBJS) $(OBJASM)
$(CC) -shared -o $@ $(OBJS) $(OBJASM)
-Wl,-soname,$(SONAME
) $(LDFLAGS)
@@ -9
4,7 +94
,7 @@
$(CC) -shared -o $@ $(OBJS) $(OBJASM)
$(SOFLAGS
) $(LDFLAGS)
@@ -9
0,7 +90
,7 @@
%.o: %.asm
$(AS) $(ASFLAGS) -o $@ $<
# delete local/anonymous symbols, so they don't show up in oprofile
...
...
@@ -76,21 +67,12 @@ Index: Makefile
.depend: config.mak
rm -f .depend
@@ -149,14 +149,14 @@
rm -rf test/
$(MAKE) -C gtk distclean
-install: x264 $(SONAME)
+install: x264$(EXE)
install -d $(DESTDIR)$(bindir) $(DESTDIR)$(includedir)
install -d $(DESTDIR)$(libdir) $(DESTDIR)$(libdir)/pkgconfig
install -m 644 x264.h $(DESTDIR)$(includedir)
@@ -155,7 +155,7 @@
install -m 644 libx264.a $(DESTDIR)$(libdir)
install -m 644 x264.pc $(DESTDIR)$(libdir)/pkgconfig
- install x264
$(DESTDIR)$(bindir)
install x264$(EXE)
$(DESTDIR)$(bindir)
- ranlib $(DESTDIR)$(libdir)/libx264.a
+ install x264$(EXE) $(DESTDIR)$(bindir)
+ $(RANLIB) $(DESTDIR)$(libdir)/libx264.a
$(if $(SONAME), ln -sf $(SONAME) $(DESTDIR)$(libdir)/libx264.so
)
$(if $(SONAME), install -m 755 $(SONAME) $(DESTDIR)$(
lib
dir))
ifeq ($(SYS),MINGW
)
$(if $(SONAME), install -m 755 $(SONAME) $(DESTDIR)$(
bin
dir))
else
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment