[vlc-commits] commit: contribs: fix pthreads build, it doesn't like MAKEFLAGS=-j4 ( Rafaël Carré )

git at videolan.org git at videolan.org
Fri Oct 8 21:00:15 CEST 2010


vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Fri Oct  8 20:34:10 2010 +0200| [0d53fcf41b5cfa73c9f350587751c762e83422ad] | committer: Rafaël Carré 

contribs: fix pthreads build, it doesn't like MAKEFLAGS=-j4

Force MAKEFLAGS=-j1

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0d53fcf41b5cfa73c9f350587751c762e83422ad
---

 extras/contrib/src/Makefile |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/extras/contrib/src/Makefile b/extras/contrib/src/Makefile
index 6616393..a309a2a 100644
--- a/extras/contrib/src/Makefile
+++ b/extras/contrib/src/Makefile
@@ -103,10 +103,9 @@ ifneq ($(BUILD),$(HOST))
         # We are REALLY cross compiling
         FFMPEGCONF+=--cross-prefix=$(HOST)- --enable-cross-compile
         X264CONF=--host=$(HOST)
-        PTHREADSCONF="CROSS=$(HOST)-"
+        PTHREADSCONF=CROSS="$(HOST)-"
     else
         # We are compiling for MinGW on Cygwin
-        PTHREADSCONF=$(HOSTCC)
     endif
 endif
 
@@ -2245,12 +2244,13 @@ pthreads-w32-$(PTHREADS_VERSION)-release.tar.gz:
 pthreads: pthreads-w32-$(PTHREADS_VERSION)-release.tar.gz
 	$(EXTRACT_GZ)
 	(cd $@; patch -p0 < ../Patches/pthreads-detach.patch)
+	sed -i 's/^CROSS.*=/CROSS ?=/' $@/GNUmakefile
 ifdef HAVE_WIN64
 	(patch -p0 < Patches/pthreads-win64.patch)
 endif
 
 .pthreads: pthreads
-	(cd $<; $(HOSTCC) make $(PTHREADSCONF) GC GC-static && mkdir -p $(PREFIX)/include && cp -v pthread.h sched.h semaphore.h $(PREFIX)/include/ && mkdir -p $(PREFIX)/lib && cp -v *.a *.dll $(PREFIX)/lib/)
+	(cd $<; $(HOSTCC) $(PTHREADSCONF) make MAKEFLAGS=-j1 GC GC-static && mkdir -p $(PREFIX)/include && cp -v pthread.h sched.h semaphore.h $(PREFIX)/include/ && mkdir -p $(PREFIX)/lib && cp -v *.a *.dll $(PREFIX)/lib/)
 	$(INSTALL_NAME)
 	touch $@
 



More information about the vlc-commits mailing list